item render is working, need to add all use cases
This commit is contained in:
@@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user