
net.minecraft.server.BlockPotatoes Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of walk-server Show documentation
Show all versions of walk-server Show documentation
A spigot fork to kotlin structure and news.
package net.minecraft.server;
public class BlockPotatoes extends BlockCrops {
public BlockPotatoes() {
}
protected Item l() {
return Items.POTATO;
}
protected Item n() {
return Items.POTATO;
}
public void dropNaturally(World world, BlockPosition blockposition, IBlockData iblockdata, float f, int i) {
super.dropNaturally(world, blockposition, iblockdata, f, i);
if (!world.isClientSide) {
if (iblockdata.get(BlockPotatoes.AGE) >= 7 && world.random.nextInt(50) == 0) {
a(world, blockposition, new ItemStack(Items.POISONOUS_POTATO));
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy