mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 15:18:34 +01:00
#BlameShadowfacts
This commit is contained in:
parent
99c5c27a51
commit
4a1d791f62
1 changed files with 7 additions and 0 deletions
|
@ -12,9 +12,11 @@ package ellpeck.actuallyadditions.blocks.render.model;
|
||||||
|
|
||||||
import ellpeck.actuallyadditions.items.InitItems;
|
import ellpeck.actuallyadditions.items.InitItems;
|
||||||
import ellpeck.actuallyadditions.tile.TileEntityCompost;
|
import ellpeck.actuallyadditions.tile.TileEntityCompost;
|
||||||
|
import net.minecraft.client.Minecraft;
|
||||||
import net.minecraft.client.model.ModelRenderer;
|
import net.minecraft.client.model.ModelRenderer;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.tileentity.TileEntity;
|
import net.minecraft.tileentity.TileEntity;
|
||||||
|
import org.lwjgl.opengl.GL11;
|
||||||
|
|
||||||
public class ModelCompost extends ModelBaseAA{
|
public class ModelCompost extends ModelBaseAA{
|
||||||
|
|
||||||
|
@ -72,6 +74,11 @@ public class ModelCompost extends ModelBaseAA{
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void renderExtra(float f, TileEntity tile){
|
public void renderExtra(float f, TileEntity tile){
|
||||||
|
//Hehe
|
||||||
|
if("ShadowfactsDev".equals(Minecraft.getMinecraft().thePlayer.getCommandSenderName())){
|
||||||
|
GL11.glTranslatef(0F, 1F, 0F);
|
||||||
|
}
|
||||||
|
|
||||||
if(tile instanceof TileEntityCompost){
|
if(tile instanceof TileEntityCompost){
|
||||||
ItemStack stack = ((TileEntityCompost)tile).getStackInSlot(0);
|
ItemStack stack = ((TileEntityCompost)tile).getStackInSlot(0);
|
||||||
if(stack != null){
|
if(stack != null){
|
||||||
|
|
Loading…
Reference in a new issue