Added texture for millstone
This commit is contained in:
parent
c8ed5fcfdc
commit
697d432f36
3 changed files with 11 additions and 4 deletions
|
@ -22,7 +22,7 @@ public class BlockMillstone extends BlockTile
|
|||
public BlockMillstone(int id)
|
||||
{
|
||||
super(id, Material.iron);
|
||||
setTextureName(Reference.PREFIX + "material_wood_surface");
|
||||
setTextureName(Reference.PREFIX + "millstone_side");
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
|
@ -45,7 +45,7 @@ public class BlockMillstone extends BlockTile
|
|||
@SideOnly(Side.CLIENT)
|
||||
public Icon getIcon(int side, int meta)
|
||||
{
|
||||
if (side == 1)
|
||||
if (side == 0 || side == 1)
|
||||
{
|
||||
return top;
|
||||
}
|
||||
|
|
|
@ -4,6 +4,7 @@ import net.minecraft.entity.player.EntityPlayer;
|
|||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.network.packet.Packet;
|
||||
import net.minecraftforge.common.ForgeDirection;
|
||||
import resonantinduction.api.recipe.MachineRecipes;
|
||||
import resonantinduction.api.recipe.MachineRecipes.RecipeType;
|
||||
import resonantinduction.api.recipe.RecipeResource;
|
||||
|
@ -53,9 +54,15 @@ public class TileMillstone extends TileExternalInventory implements IPacketRecei
|
|||
}
|
||||
|
||||
@Override
|
||||
public boolean isItemValidForSlot(int i, ItemStack itemstack)
|
||||
public boolean isItemValidForSlot(int i, ItemStack itemStack)
|
||||
{
|
||||
return MachineRecipes.INSTANCE.getOutput(RecipeType.GRINDER, itemstack).length > 0;
|
||||
return MachineRecipes.INSTANCE.getOutput(RecipeType.GRINDER, itemStack).length > 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canStore(ItemStack stack, int slot, ForgeDirection side)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 1.5 KiB |
Loading…
Reference in a new issue