use of net.modificationstation.stationapi.api.client.texture.atlas.ExpandableAtlas in project StationAPI by ModificationStation.
the class TextureListener method registerTextures.
@EventListener
public void registerTextures(TextureRegisterEvent event) {
ExpandableAtlas terrain = Atlases.getTerrain();
TEST_BLOCK.get().texture = terrain.addTexture(of(MODID, "blocks/testBlock")).index;
TEST_ANIMATED_BLOCK.get().texture = terrain.addTexture(of(MODID, "blocks/testAnimatedBlock")).index;
FREEZER.get().texture = terrain.addTexture(of(MODID, "blocks/FreezerTop")).index;
FREEZER.get(BlockFreezer.class).sideTexture = terrain.addTexture(of(MODID, "blocks/FreezerSide")).index;
altarTextures[Direction.DOWN.ordinal()] = terrain.addTexture(of(MODID, "blocks/altar_bottom")).index;
altarTextures[Direction.UP.ordinal()] = terrain.addTexture(of(MODID, "blocks/altar_top")).index;
altarTextures[Direction.EAST.ordinal()] = terrain.addTexture(of(MODID, "blocks/altar_east")).index;
altarTextures[Direction.WEST.ordinal()] = terrain.addTexture(of(MODID, "blocks/altar_west")).index;
altarTextures[Direction.NORTH.ordinal()] = terrain.addTexture(of(MODID, "blocks/altar_north")).index;
altarTextures[Direction.SOUTH.ordinal()] = terrain.addTexture(of(MODID, "blocks/altar_south")).index;
ItemListener.testNBTItem.setTexture(of(MODID, "items/nbtItem"));
ItemListener.testItem.setTexture(of(MODID, "items/highres"));
// ItemListener.testPickaxe.setAnimationBinder("/assets/sltest/stationapi/textures/items/testPickaxe.png", 1, of(MODID, "items/testItem"));
ItemListener.testPickaxe.setTexture(of(MODID, "items/testPickaxe"));
// SquareAtlas.GUI_ITEMS.addAnimationBinder("/assets/sltest/textures/items/testPickaxe.png", 1, 0);
TEST_ATLAS = new ExpandableAtlas(of(SLTest.MODID, "test_atlas"));
TEST_ATLAS.addTexture(of(MODID, "items/testItem"));
TEST_ATLAS.addTexture(of(MODID, "blocks/testBlock"));
TEST_ATLAS.addTexture(of(MODID, "blocks/testAnimatedBlock"));
TEST_ATLAS.addTexture(of(MODID, "items/testPickaxe"));
TEST_ATLAS.addTexture(of(MODID, "items/nbtItem"));
TEST_ATLAS.addTexture(of(MODID, "blocks/FreezerTop"));
TEST_ATLAS.addTexture(of(MODID, "blocks/FreezerSide"));
// farlandsBlockModel = JsonUnbakedModel.get(of(MODID, "farlandsBlock"));
// testItemModel = JsonUnbakedModel.get(of(MODID, "item/testItem"));
}
use of net.modificationstation.stationapi.api.client.texture.atlas.ExpandableAtlas in project StationAPI by ModificationStation.
the class Arsenic method registerTextures.
private static void registerTextures(TextureRegisterEvent event) {
ExpandableAtlas terrain = Atlases.getTerrain();
ExpandableAtlas guiItems = Atlases.getGuiItems();
terrain.addTextureBinder(terrain.getTexture(BlockBase.FLOWING_WATER.texture), ArsenicStillWater::new);
terrain.addTextureBinder(terrain.getTexture(BlockBase.FLOWING_WATER.texture + 1), ArsenicFlowingWater::new);
terrain.addTextureBinder(terrain.getTexture(BlockBase.FLOWING_LAVA.texture), ArsenicStillLava::new);
terrain.addTextureBinder(terrain.getTexture(BlockBase.FLOWING_LAVA.texture + 1), ArsenicFlowingLava::new);
terrain.addTextureBinder(terrain.getTexture(BlockBase.FIRE.texture), ArsenicFire::new);
terrain.addTextureBinder(terrain.getTexture(BlockBase.FIRE.texture + 16), ArsenicFire::new);
terrain.addTextureBinder(terrain.getTexture(BlockBase.PORTAL.texture), ArsenicPortal::new);
guiItems.addTextureBinder(guiItems.getTexture(ItemBase.compass.getTexturePosition(0)), ArsenicCompass::new);
guiItems.addTextureBinder(guiItems.getTexture(ItemBase.clock.getTexturePosition(0)), ArsenicClock::new);
}
use of net.modificationstation.stationapi.api.client.texture.atlas.ExpandableAtlas in project StationAPI by ModificationStation.
the class StationRenderImpl method init.
@EventListener(priority = ListenerPriority.HIGH)
private static void init(TextureRegisterEvent event) {
TERRAIN = new ExpandableAtlas(Atlases.GAME_ATLAS_TEXTURE);
GUI_ITEMS = new ExpandableAtlas(of("textures/atlas/gui/items.png"));
TERRAIN.addSpritesheet("/terrain.png", 16, TerrainHelper.INSTANCE);
GUI_ITEMS.addSpritesheet("/gui/items.png", 16, GuiItemsHelper.INSTANCE);
}
Aggregations