item render is working, need to add all use cases

This commit is contained in:
Mohammad-Ali Minaie
2018-08-30 08:19:31 -04:00
parent 5f8d0c40c2
commit d8256951d4
3 changed files with 2 additions and 5 deletions

View File

@@ -31,9 +31,7 @@ public class ItemNBTCrucible extends ItemBlock {
@SideOnly(Side.CLIENT) @SideOnly(Side.CLIENT)
public float apply(ItemStack item, @Nullable World worldIn, @Nullable EntityLivingBase entityIn) public float apply(ItemStack item, @Nullable World worldIn, @Nullable EntityLivingBase entityIn)
{ {
System.out.println("Is this even render code");
if (item.hasTagCompound()) { if (item.hasTagCompound()) {
System.out.println("We have a tag compound");
if (getHot(item) == 0){ if (getHot(item) == 0){
return 0.0f; return 0.0f;
} }
@@ -91,7 +89,6 @@ public class ItemNBTCrucible extends ItemBlock {
public int getHot(ItemStack stack) { public int getHot(ItemStack stack) {
if(!stack.isEmpty()) { if(!stack.isEmpty()) {
if (stack.hasTagCompound()) { if (stack.hasTagCompound()) {
System.out.println(stack.getSubCompound("BlockEntityTag").getInteger("hot"));
return stack.getSubCompound("BlockEntityTag").getInteger("hot"); return stack.getSubCompound("BlockEntityTag").getInteger("hot");
} }
} }

View File

@@ -1,5 +1,5 @@
{ {
"parent": "forgecraft:emptycrucible", "parent": "forgecraft:block/emptycrucible",
"textures": { "textures": {
"particle": "forgecraft:blocks/stone_slab", "particle": "forgecraft:blocks/stone_slab",
"texture": "forgecraft:blocks/stone_slab" "texture": "forgecraft:blocks/stone_slab"

View File

@@ -1,5 +1,5 @@
{ {
"parent": "forgecraft:castingcrucible1", "parent": "forgecraft:block/castingcrucible1",
"textures": { "textures": {
"particle": "forgecraft:blocks/stone_slab", "particle": "forgecraft:blocks/stone_slab",
"texture": "forgecraft:blocks/stone_slab", "texture": "forgecraft:blocks/stone_slab",