more cleanup
This commit is contained in:
parent
72d46bfe72
commit
18962cd653
97 changed files with 352 additions and 387 deletions
|
@ -8,7 +8,6 @@ import common.color.Colorizer;
|
|||
import common.entity.npc.EntityNPC;
|
||||
import common.entity.types.EntityLiving;
|
||||
import common.init.Blocks;
|
||||
import common.init.ItemRegistry;
|
||||
import common.init.Items;
|
||||
import common.item.Item;
|
||||
import common.item.ItemStack;
|
||||
|
@ -152,7 +151,7 @@ public class BlockDoublePlant extends BlockBush implements Rotatable, IGrowable
|
|||
}
|
||||
else
|
||||
{
|
||||
return this.type == BlockDoublePlant.EnumPlantType.FERN ? null : (this.type == BlockDoublePlant.EnumPlantType.GRASS ? (rand.chance(8) ? Items.wheat : null) : ItemRegistry.getItemFromBlock(this));
|
||||
return this.type == BlockDoublePlant.EnumPlantType.FERN ? null : (this.type == BlockDoublePlant.EnumPlantType.GRASS ? (rand.chance(8) ? Items.wheat : null) : this.getItem());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -236,7 +235,7 @@ public class BlockDoublePlant extends BlockBush implements Rotatable, IGrowable
|
|||
}
|
||||
else
|
||||
{
|
||||
spawnAsEntity(worldIn, pos, new ItemStack(this.type == BlockDoublePlant.EnumPlantType.GRASS ? Blocks.tallgrass : Blocks.fern, 2));
|
||||
spawnAsEntity(worldIn, pos, new ItemStack(this.type == BlockDoublePlant.EnumPlantType.GRASS ? Items.tallgrass : Items.fern, 2));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -256,7 +255,7 @@ public class BlockDoublePlant extends BlockBush implements Rotatable, IGrowable
|
|||
|
||||
public void grow(AWorldServer worldIn, Random rand, BlockPos pos, State state)
|
||||
{
|
||||
spawnAsEntity(worldIn, pos, new ItemStack(this));
|
||||
spawnAsEntity(worldIn, pos, new ItemStack(this.getItem()));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -301,7 +300,7 @@ public class BlockDoublePlant extends BlockBush implements Rotatable, IGrowable
|
|||
return new Property[] {FACING};
|
||||
}
|
||||
|
||||
public Item getItemToRegister() {
|
||||
protected Item getItemToRegister() {
|
||||
return new ItemDoublePlant(this);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue