Search in sources :

Example 1 with AnimatedSquareTexturedSkybox

use of io.github.amerebagatelle.fabricskyboxes.skyboxes.textured.AnimatedSquareTexturedSkybox in project fabricskyboxes by AMereBagatelle.

the class SkyboxGenerationTest method init.

@Test
public void init() throws IOException {
    DefaultProperties props = new DefaultProperties.Builder().changesFog().rotates().rotation(new Rotation(new Vec3f(0.1F, 0.0F, 0.1F), new Vec3f(0.0F, 0.0F, 0.0F), 1)).maxAlpha(0.99F).transitionSpeed(0.7F).fade(new Fade(1000, 2000, 11000, 12000, false)).build();
    Conditions conditions = new Conditions.Builder().biomes(new Identifier("minecraft:plains")).worlds(new Identifier("minecraft:overworld")).weather(Weather.CLEAR).yRanges(new MinMaxEntry(40, 120)).build();
    Decorations decorations = new Decorations(PlayerScreenHandler.BLOCK_ATLAS_TEXTURE, SpriteAtlasTexture.PARTICLE_ATLAS_TEXTURE, true, true, false, Rotation.DEFAULT);
    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)));
    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, 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")), new Textures(SpriteAtlasTexture.PARTICLE_ATLAS_TEXTURE, SpriteAtlasTexture.PARTICLE_ATLAS_TEXTURE, SpriteAtlasTexture.PARTICLE_ATLAS_TEXTURE, SpriteAtlasTexture.PARTICLE_ATLAS_TEXTURE, new Identifier("missingno"), SpriteAtlasTexture.PARTICLE_ATLAS_TEXTURE), new Textures(SpriteAtlasTexture.PARTICLE_ATLAS_TEXTURE, PlayerScreenHandler.BLOCK_ATLAS_TEXTURE, PlayerScreenHandler.BLOCK_ATLAS_TEXTURE, SpriteAtlasTexture.PARTICLE_ATLAS_TEXTURE, SpriteAtlasTexture.PARTICLE_ATLAS_TEXTURE, SpriteAtlasTexture.PARTICLE_ATLAS_TEXTURE)), 0.2F));
}
Also used : GsonBuilder(com.google.gson.GsonBuilder) Gson(com.google.gson.Gson) AnimatedSquareTexturedSkybox(io.github.amerebagatelle.fabricskyboxes.skyboxes.textured.AnimatedSquareTexturedSkybox) Vec3f(net.minecraft.util.math.Vec3f) Identifier(net.minecraft.util.Identifier) SquareTexturedSkybox(io.github.amerebagatelle.fabricskyboxes.skyboxes.textured.SquareTexturedSkybox) AnimatedSquareTexturedSkybox(io.github.amerebagatelle.fabricskyboxes.skyboxes.textured.AnimatedSquareTexturedSkybox) MonoColorSkybox(io.github.amerebagatelle.fabricskyboxes.skyboxes.MonoColorSkybox) Test(org.junit.jupiter.api.Test)

Aggregations

Gson (com.google.gson.Gson)1 GsonBuilder (com.google.gson.GsonBuilder)1 MonoColorSkybox (io.github.amerebagatelle.fabricskyboxes.skyboxes.MonoColorSkybox)1 AnimatedSquareTexturedSkybox (io.github.amerebagatelle.fabricskyboxes.skyboxes.textured.AnimatedSquareTexturedSkybox)1 SquareTexturedSkybox (io.github.amerebagatelle.fabricskyboxes.skyboxes.textured.SquareTexturedSkybox)1 Identifier (net.minecraft.util.Identifier)1 Vec3f (net.minecraft.util.math.Vec3f)1 Test (org.junit.jupiter.api.Test)1