Showing with 1,037 additions and 195 deletions.
  1. +41 −0 CODE_OF_CONDUCT.md
  2. +19 −0 CONTRIBUTING.md
  3. +3 −1 build.gradle
  4. +180 −22 docs/schema-v2.md
  5. +4 −4 gradle.properties
  6. +13 −0 src/main/java/io/github/amerebagatelle/fabricskyboxes/FabricSkyBoxesClient.java
  7. +7 −12 src/main/java/io/github/amerebagatelle/fabricskyboxes/SkyboxManager.java
  8. +0 −1 src/main/java/io/github/amerebagatelle/fabricskyboxes/api/skyboxes/FSBSkybox.java
  9. +12 −0 src/main/java/io/github/amerebagatelle/fabricskyboxes/api/skyboxes/Skybox.java
  10. +9 −1 src/main/java/io/github/amerebagatelle/fabricskyboxes/config/FabricSkyBoxesConfig.java
  11. +44 −0 src/main/java/io/github/amerebagatelle/fabricskyboxes/config/SkyBoxDebugScreen.java
  12. +24 −1 src/main/java/io/github/amerebagatelle/fabricskyboxes/mixin/skybox/FogColorMixin.java
  13. +11 −1 src/main/java/io/github/amerebagatelle/fabricskyboxes/mixin/skybox/SkyboxRenderMixin.java
  14. +27 −0 src/main/java/io/github/amerebagatelle/fabricskyboxes/mixin/skybox/WindowMixin.java
  15. +18 −14 src/main/java/io/github/amerebagatelle/fabricskyboxes/skyboxes/AbstractSkybox.java
  16. +6 −7 src/main/java/io/github/amerebagatelle/fabricskyboxes/skyboxes/EndSkybox.java
  17. +2 −1 src/main/java/io/github/amerebagatelle/fabricskyboxes/skyboxes/LegacyDeserializer.java
  18. +2 −2 src/main/java/io/github/amerebagatelle/fabricskyboxes/skyboxes/MonoColorSkybox.java
  19. +3 −4 src/main/java/io/github/amerebagatelle/fabricskyboxes/skyboxes/SkyboxType.java
  20. +111 −0 src/main/java/io/github/amerebagatelle/fabricskyboxes/skyboxes/textured/MultiTextureSkybox.java
  21. +54 −5 ...a/io/github/amerebagatelle/fabricskyboxes/skyboxes/textured/SingleSpriteSquareTexturedSkybox.java
  22. +7 −9 src/main/java/io/github/amerebagatelle/fabricskyboxes/skyboxes/textured/SquareTexturedSkybox.java
  23. +4 −3 src/main/java/io/github/amerebagatelle/fabricskyboxes/skyboxes/textured/TexturedSkybox.java
  24. +0 −6 src/main/java/io/github/amerebagatelle/fabricskyboxes/util/Constants.java
  25. +124 −39 src/main/java/io/github/amerebagatelle/fabricskyboxes/util/Utils.java
  26. +94 −0 src/main/java/io/github/amerebagatelle/fabricskyboxes/util/object/Animation.java
  27. +3 −1 src/main/java/io/github/amerebagatelle/fabricskyboxes/util/object/Blend.java
  28. +3 −1 src/main/java/io/github/amerebagatelle/fabricskyboxes/util/object/Blender.java
  29. +0 −15 src/main/java/io/github/amerebagatelle/fabricskyboxes/util/object/Conditions.java
  30. +19 −0 src/main/java/io/github/amerebagatelle/fabricskyboxes/util/object/FogRGBA.java
  31. +29 −8 src/main/java/io/github/amerebagatelle/fabricskyboxes/util/object/Properties.java
  32. +17 −3 src/main/java/io/github/amerebagatelle/fabricskyboxes/util/object/Rotation.java
  33. +2 −25 src/main/java/io/github/amerebagatelle/fabricskyboxes/util/object/Texture.java
  34. +41 −0 src/main/java/io/github/amerebagatelle/fabricskyboxes/util/object/UVRange.java
  35. +74 −0 src/main/java/io/github/amerebagatelle/fabricskyboxes/util/object/UVRanges.java
  36. +3 −1 src/main/resources/assets/fabricskyboxes/lang/en_us.json
  37. +6 −0 src/main/resources/assets/fabricskyboxes/lang/vi_vn.json
  38. +1 −1 src/main/resources/fabric.mod.json
  39. +1 −0 src/main/resources/fabricskyboxes.mixins.json
  40. +2 −0 src/test/java/io/github/amerebagatelle/fabricskyboxes/tests/SkyboxGenerationTest.java
  41. +15 −7 src/test/java/io/github/amerebagatelle/fabricskyboxes/tests/UtilsTest.java
  42. +2 −0 src/testmod/java/io/github/amerebagatelle/fabricskyboxes/TestClientModInitializer.java
41 changes: 41 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# FabricSkyBoxes Code of Conduct

## Introduction

As a contributor or user of FabricSkyBoxes, you are required to abide by this Code of Conduct to ensure a welcoming and respectful environment for everyone involved. The Code of Conduct applies to all interactions and communication related to the mod, including but not limited to forums, GitHub discussions, in-game chat, and social media.

## 1. Be Respectful and Inclusive

Treat all individuals with respect and kindness, regardless of their background, race, ethnicity, gender, age, sexual orientation, religion, or any other personal attribute. This mod aims to be a diverse and inclusive community, and everyone should feel welcome and valued.

## 2. Be Collaborative and Supportive

Encourage collaboration and constructive discussions among users and contributors. Offer support and help to others, and foster a positive learning environment. Remember that everyone is here to share their passion for Minecraft and modding.

## 3. Be Patient and Understanding

Be patient with others, especially those who may be new to modding or the community. Respect that people may have different levels of experience and expertise, and refrain from belittling or dismissing their contributions or questions.

## 4. Avoid Harassment and Hate Speech

Harassment, bullying, and hate speech will not be tolerated. This includes offensive language, personal attacks, and any form of discriminatory behavior. Respect boundaries and refrain from engaging in behavior that could harm or distress others.

## 5. Use Constructive Feedback

Provide feedback in a constructive and respectful manner. Critique ideas, contributions, or proposals based on their merits and potential for improvement. Avoid using harsh language or making personal attacks when discussing issues.

## 6. Follow the Project's Guidelines

Adhere to the guidelines and rules set by the mod's maintainers and administrators. These guidelines may include rules related to code contributions, issue reporting, and community interactions. Ignoring guidelines may result in consequences at the discretion of the maintainers.

## 7. Report Incidents

If you witness or experience any violation of this Code of Conduct, promptly report it to the mod's maintainers or administrators through appropriate channels. Provide as much detail as possible to aid in resolving the situation.

## 8. Consequences of Non-Compliance

Violation of this Code of Conduct may result in appropriate actions taken by the mod's maintainers, including warnings, temporary bans, or permanent bans from the community. Decisions regarding consequences will be made with fairness and consideration.

## Conclusion

By contributing to or using FabricSkyBoxes, you agree to uphold this Code of Conduct. Let's work together to maintain a friendly, supportive, and inclusive environment for all users and contributors.
19 changes: 19 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Contributing Guidelines

## Code Style

When contributing source code to the project, please adhere to our code style guidelines. These guidelines are based on the [Google code style guidelines for Java](https://google.github.io/styleguide/javaguide.html), with a few minor adjustments as described below:

- Use 4 spaces for indentation, not tabs. Avoid lines that exceed 120 characters in length.
- Avoid deeply nested conditional logic and prefer breaking out into separate functions when possible.
- If you find yourself using more than three levels of indentation, consider refactoring your code.
- For rarely taken branches, keep them concise or break out into new methods, allowing better code optimization.
- Use `this` to qualify member and field access to avoid ambiguity in certain contexts.

We also provide [EditorConfig](https://editorconfig.org/) files, which most Java IDEs will automatically detect and use.

## Pull Requests

When submitting a pull request, please include a brief description of the changes you made and link to any relevant open issues that your pull request addresses. Additionally, ensure that your code is well-documented, especially in cases where it might not be immediately obvious, and that it follows our code style guidelines.

We value your contributions and appreciate your efforts in helping us maintain a high-quality codebase. Thank you for contributing to our project!
4 changes: 3 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'fabric-loom' version '1.2-SNAPSHOT'
id 'fabric-loom' version '1.3-SNAPSHOT'
id 'maven-publish'
id 'io.github.juuxel.loom-quiltflower' version '1.10.0'
}
Expand Down Expand Up @@ -36,6 +36,8 @@ dependencies {
compileOnly "com.google.code.findbugs:jsr305:3.0.2"

modRuntimeOnly "maven.modrinth:lazydfu:0.1.3"
//modRuntimeOnly "maven.modrinth:lithium:mc1.20.1-0.11.2"
//modRuntimeOnly "maven.modrinth:sodium:mc1.20.1-0.5.2"

testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.0'
Expand Down
Loading