From 78ac0cdf59bc23c14c819cc57186c96e00e82867 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Tue, 25 Aug 2015 21:14:39 +0200 Subject: [PATCH] Changed Rendering & added Acid & Jasin to the Cloud --- .../blocks/BlockCoffeeMachine.java | 4 +-- .../blocks/BlockCompost.java | 4 +-- .../blocks/BlockFishingNet.java | 4 +-- .../blocks/BlockFurnaceSolar.java | 4 +-- .../blocks/BlockSmileyCloud.java | 4 +-- .../gadget/cloud/SmileyCloudEasterEggs.java | 25 ++++++++++++++++++ .../actuallyadditions/proxy/ClientProxy.java | 15 +++++++++++ .../blocks/models/modelSmileyCloud.png | Bin 559 -> 2578 bytes 8 files changed, 50 insertions(+), 10 deletions(-) diff --git a/src/main/java/ellpeck/actuallyadditions/blocks/BlockCoffeeMachine.java b/src/main/java/ellpeck/actuallyadditions/blocks/BlockCoffeeMachine.java index 75a35ebf1..af7d8a938 100644 --- a/src/main/java/ellpeck/actuallyadditions/blocks/BlockCoffeeMachine.java +++ b/src/main/java/ellpeck/actuallyadditions/blocks/BlockCoffeeMachine.java @@ -1,11 +1,11 @@ package ellpeck.actuallyadditions.blocks; -import cpw.mods.fml.client.registry.RenderingRegistry; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import ellpeck.actuallyadditions.ActuallyAdditions; import ellpeck.actuallyadditions.config.values.ConfigIntValues; import ellpeck.actuallyadditions.inventory.GuiHandler; +import ellpeck.actuallyadditions.proxy.ClientProxy; import ellpeck.actuallyadditions.tile.TileEntityCoffeeMachine; import ellpeck.actuallyadditions.util.BlockUtil; import ellpeck.actuallyadditions.util.INameableItem; @@ -81,7 +81,7 @@ public class BlockCoffeeMachine extends BlockContainerBase implements INameableI @Override public int getRenderType(){ - return RenderingRegistry.getNextAvailableRenderId(); + return ClientProxy.COFFEE_MACHINE_RENDER_ID; } @Override diff --git a/src/main/java/ellpeck/actuallyadditions/blocks/BlockCompost.java b/src/main/java/ellpeck/actuallyadditions/blocks/BlockCompost.java index 0fdf3f3a6..91d6ee151 100644 --- a/src/main/java/ellpeck/actuallyadditions/blocks/BlockCompost.java +++ b/src/main/java/ellpeck/actuallyadditions/blocks/BlockCompost.java @@ -1,12 +1,12 @@ package ellpeck.actuallyadditions.blocks; -import cpw.mods.fml.client.registry.RenderingRegistry; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import ellpeck.actuallyadditions.config.values.ConfigIntValues; import ellpeck.actuallyadditions.items.ItemFertilizer; import ellpeck.actuallyadditions.items.ItemMisc; import ellpeck.actuallyadditions.items.metalists.TheMiscItems; +import ellpeck.actuallyadditions.proxy.ClientProxy; import ellpeck.actuallyadditions.tile.TileEntityCompost; import ellpeck.actuallyadditions.util.BlockUtil; import ellpeck.actuallyadditions.util.INameableItem; @@ -105,7 +105,7 @@ public class BlockCompost extends BlockContainerBase implements INameableItem{ @Override public int getRenderType(){ - return RenderingRegistry.getNextAvailableRenderId(); + return ClientProxy.COMPOST_RENDER_ID; } @Override diff --git a/src/main/java/ellpeck/actuallyadditions/blocks/BlockFishingNet.java b/src/main/java/ellpeck/actuallyadditions/blocks/BlockFishingNet.java index 5363e1224..e8f850a44 100644 --- a/src/main/java/ellpeck/actuallyadditions/blocks/BlockFishingNet.java +++ b/src/main/java/ellpeck/actuallyadditions/blocks/BlockFishingNet.java @@ -1,8 +1,8 @@ package ellpeck.actuallyadditions.blocks; -import cpw.mods.fml.client.registry.RenderingRegistry; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; +import ellpeck.actuallyadditions.proxy.ClientProxy; import ellpeck.actuallyadditions.tile.TileEntityFishingNet; import ellpeck.actuallyadditions.util.BlockUtil; import ellpeck.actuallyadditions.util.INameableItem; @@ -59,7 +59,7 @@ public class BlockFishingNet extends BlockContainerBase implements INameableItem @Override public int getRenderType(){ - return RenderingRegistry.getNextAvailableRenderId(); + return ClientProxy.FISHING_NET_RENDER_ID; } @Override diff --git a/src/main/java/ellpeck/actuallyadditions/blocks/BlockFurnaceSolar.java b/src/main/java/ellpeck/actuallyadditions/blocks/BlockFurnaceSolar.java index b269cc52f..10477d6a3 100644 --- a/src/main/java/ellpeck/actuallyadditions/blocks/BlockFurnaceSolar.java +++ b/src/main/java/ellpeck/actuallyadditions/blocks/BlockFurnaceSolar.java @@ -1,9 +1,9 @@ package ellpeck.actuallyadditions.blocks; -import cpw.mods.fml.client.registry.RenderingRegistry; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import ellpeck.actuallyadditions.config.values.ConfigIntValues; +import ellpeck.actuallyadditions.proxy.ClientProxy; import ellpeck.actuallyadditions.tile.TileEntityFurnaceSolar; import ellpeck.actuallyadditions.util.BlockUtil; import ellpeck.actuallyadditions.util.INameableItem; @@ -60,7 +60,7 @@ public class BlockFurnaceSolar extends BlockContainerBase implements INameableIt @Override public int getRenderType(){ - return RenderingRegistry.getNextAvailableRenderId(); + return ClientProxy.FURNACE_SOLAR_RENDER_ID; } @Override diff --git a/src/main/java/ellpeck/actuallyadditions/blocks/BlockSmileyCloud.java b/src/main/java/ellpeck/actuallyadditions/blocks/BlockSmileyCloud.java index 9cf2533d3..bde7ca960 100644 --- a/src/main/java/ellpeck/actuallyadditions/blocks/BlockSmileyCloud.java +++ b/src/main/java/ellpeck/actuallyadditions/blocks/BlockSmileyCloud.java @@ -1,10 +1,10 @@ package ellpeck.actuallyadditions.blocks; -import cpw.mods.fml.client.registry.RenderingRegistry; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import ellpeck.actuallyadditions.ActuallyAdditions; import ellpeck.actuallyadditions.inventory.GuiHandler; +import ellpeck.actuallyadditions.proxy.ClientProxy; import ellpeck.actuallyadditions.tile.TileEntitySmileyCloud; import ellpeck.actuallyadditions.util.BlockUtil; import ellpeck.actuallyadditions.util.INameableItem; @@ -97,7 +97,7 @@ public class BlockSmileyCloud extends BlockContainerBase implements INameableIte @Override public int getRenderType(){ - return RenderingRegistry.getNextAvailableRenderId(); + return ClientProxy.SMILEY_CLOUD_RENDER_ID; } @Override diff --git a/src/main/java/ellpeck/actuallyadditions/gadget/cloud/SmileyCloudEasterEggs.java b/src/main/java/ellpeck/actuallyadditions/gadget/cloud/SmileyCloudEasterEggs.java index 65f3e8007..09a163f5f 100644 --- a/src/main/java/ellpeck/actuallyadditions/gadget/cloud/SmileyCloudEasterEggs.java +++ b/src/main/java/ellpeck/actuallyadditions/gadget/cloud/SmileyCloudEasterEggs.java @@ -2,6 +2,7 @@ package ellpeck.actuallyadditions.gadget.cloud; import ellpeck.actuallyadditions.blocks.InitBlocks; import ellpeck.actuallyadditions.items.InitItems; +import ellpeck.actuallyadditions.items.metalists.TheFoods; import ellpeck.actuallyadditions.util.AssetUtil; import net.minecraft.block.Block; import net.minecraft.init.Blocks; @@ -186,6 +187,30 @@ public class SmileyCloudEasterEggs{ renderHeadBlock(Blocks.hay_block, 0, 74F); } }); + //Acid + register(new ISmileyCloudEasterEgg(){ + @Override + public String[] getTriggerNames(){ + return new String[]{"acid", "acid_blues", "acidblues"}; + } + @Override + public void renderExtra(float f){ + renderHoldingItem(false, new ItemStack(InitItems.itemFoods, 1, TheFoods.PIZZA.ordinal())); + renderHeadBlock(Blocks.bookshelf, 0, 27F); + } + }); + //Jasin + register(new ISmileyCloudEasterEgg(){ + @Override + public String[] getTriggerNames(){ + return new String[]{"jasin", "jasindow"}; + } + @Override + public void renderExtra(float f){ + renderHoldingItem(false, new ItemStack(Items.written_book)); + renderHeadBlock(Blocks.web, 0, 56F); + } + }); } private static void register(ISmileyCloudEasterEgg egg){ diff --git a/src/main/java/ellpeck/actuallyadditions/proxy/ClientProxy.java b/src/main/java/ellpeck/actuallyadditions/proxy/ClientProxy.java index 394c82b09..d163a9468 100644 --- a/src/main/java/ellpeck/actuallyadditions/proxy/ClientProxy.java +++ b/src/main/java/ellpeck/actuallyadditions/proxy/ClientProxy.java @@ -2,6 +2,7 @@ package ellpeck.actuallyadditions.proxy; import cpw.mods.fml.client.registry.ClientRegistry; +import cpw.mods.fml.client.registry.RenderingRegistry; import cpw.mods.fml.common.registry.VillagerRegistry; import ellpeck.actuallyadditions.blocks.InitBlocks; import ellpeck.actuallyadditions.blocks.render.*; @@ -19,6 +20,13 @@ import net.minecraftforge.client.MinecraftForgeClient; @SuppressWarnings("unused") public class ClientProxy implements IProxy{ + public static int COMPOST_RENDER_ID; + public static int FISHING_NET_RENDER_ID; + public static int FURNACE_SOLAR_RENDER_ID; + public static int COFFEE_MACHINE_RENDER_ID; + public static int PHANTOM_BOOSTER_RENDER_ID; + public static int SMILEY_CLOUD_RENDER_ID; + @Override public void preInit(){ ModUtil.LOGGER.info("PreInitializing ClientProxy..."); @@ -32,6 +40,13 @@ public class ClientProxy implements IProxy{ public void init(){ ModUtil.LOGGER.info("Initializing ClientProxy..."); + COMPOST_RENDER_ID = RenderingRegistry.getNextAvailableRenderId(); + FISHING_NET_RENDER_ID = RenderingRegistry.getNextAvailableRenderId(); + FURNACE_SOLAR_RENDER_ID = RenderingRegistry.getNextAvailableRenderId(); + COFFEE_MACHINE_RENDER_ID = RenderingRegistry.getNextAvailableRenderId(); + PHANTOM_BOOSTER_RENDER_ID = RenderingRegistry.getNextAvailableRenderId(); + SMILEY_CLOUD_RENDER_ID = RenderingRegistry.getNextAvailableRenderId(); + ClientRegistry.bindTileEntitySpecialRenderer(TileEntityCompost.class, new RenderTileEntity(new ModelCompost())); MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(InitBlocks.blockCompost), new RenderItems(new ModelCompost())); diff --git a/src/main/resources/assets/actuallyadditions/textures/blocks/models/modelSmileyCloud.png b/src/main/resources/assets/actuallyadditions/textures/blocks/models/modelSmileyCloud.png index 10de75d82d8670671e7ea3256a49141abc3ed0a0..2bfc199b497b6ca340fe76ca706cc288c6bb0f03 100644 GIT binary patch delta 2494 zcmV;v2|@O+1dJWs*w|KN=`88hx4(T^d#!h^wfA@IW4o0{o13$T4<5`O+`BisfA{X} z?#6${Y@=g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