Skip to content

Commit

Permalink
change: Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
FlashyReese committed Jun 13, 2024
1 parent 18e05e7 commit 7200627
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ public void init() throws IOException {
.fade(new Fade(1000, 2000, 11000, 12000, false))
.build();
Conditions conditions = new Conditions.Builder()
.biomes(new Identifier("minecraft:plains"))
.worlds(new Identifier("minecraft:overworld"))
.biomes(Identifier.tryParse("minecraft:plains"))
.worlds(Identifier.tryParse("minecraft:overworld"))
.weather(Weather.CLEAR)
.yRanges(new MinMaxEntry(40, 120))
.build();
Expand All @@ -61,22 +61,22 @@ public void init() throws IOException {

Gson gson = new GsonBuilder().setPrettyPrinting().serializeNulls().setLenient().create();
this.test(gson, MonoColorSkybox.CODEC, new MonoColorSkybox(props, conditions, decorations, new RGBA(0.5F, 0.8F, 0.6F, 0.99F), Blend.DEFAULT));
this.test(gson, SquareTexturedSkybox.CODEC, new SquareTexturedSkybox(props, conditions, decorations, Blend.DEFAULT, new Textures(PlayerScreenHandler.BLOCK_ATLAS_TEXTURE, PlayerScreenHandler.EMPTY_BOOTS_SLOT_TEXTURE, PlayerScreenHandler.BLOCK_ATLAS_TEXTURE, PlayerScreenHandler.EMPTY_OFFHAND_ARMOR_SLOT, PlayerScreenHandler.EMPTY_BOOTS_SLOT_TEXTURE, new Identifier("missingno"))));
this.test(gson, SquareTexturedSkybox.CODEC, new SquareTexturedSkybox(props, conditions, decorations, Blend.DEFAULT, new Textures(PlayerScreenHandler.BLOCK_ATLAS_TEXTURE, PlayerScreenHandler.EMPTY_BOOTS_SLOT_TEXTURE, PlayerScreenHandler.BLOCK_ATLAS_TEXTURE, PlayerScreenHandler.EMPTY_OFFHAND_ARMOR_SLOT, PlayerScreenHandler.EMPTY_BOOTS_SLOT_TEXTURE, Identifier.tryParse("missingno"))));
this.test(gson, AnimatedSquareTexturedSkybox.CODEC, new AnimatedSquareTexturedSkybox(props, conditions, decorations, Blend.DEFAULT, Arrays.asList(
new Textures(
PlayerScreenHandler.BLOCK_ATLAS_TEXTURE,
PlayerScreenHandler.EMPTY_BOOTS_SLOT_TEXTURE,
PlayerScreenHandler.BLOCK_ATLAS_TEXTURE,
PlayerScreenHandler.EMPTY_OFFHAND_ARMOR_SLOT,
PlayerScreenHandler.EMPTY_BOOTS_SLOT_TEXTURE,
new Identifier("missingno")
Identifier.tryParse("missingno")
),
new Textures(
SpriteAtlasTexture.PARTICLE_ATLAS_TEXTURE,
SpriteAtlasTexture.PARTICLE_ATLAS_TEXTURE,
SpriteAtlasTexture.PARTICLE_ATLAS_TEXTURE,
SpriteAtlasTexture.PARTICLE_ATLAS_TEXTURE,
new Identifier("missingno"),
Identifier.tryParse("missingno"),
SpriteAtlasTexture.PARTICLE_ATLAS_TEXTURE
),
new Textures(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ public class TestClientModInitializer implements ClientModInitializer {
Blend.DECORATIONS
);
CONDITIONS = new Conditions.Builder()
.biomes(new Identifier("minecraft:plains"))
.worlds(new Identifier("minecraft:overworld"))
.biomes(Identifier.tryParse("minecraft:plains"))
.worlds(Identifier.tryParse("minecraft:overworld"))
.weather(Weather.CLEAR)
.yRanges(new MinMaxEntry(40, 120))
.build();
Expand Down

0 comments on commit 7200627

Please sign in to comment.