Available Methods
- getTier ( )
- isPickaxe ( )
- get ( )
- getId ( )
- getCount ( )
- getDamage ( )
- AIR
- setCount ( )
- clone ( )
- getEnchantment ( )
- hasCustomBlockData ( )
- isShovel ( )
- isShears ( )
- equals ( )
- hasCustomName ( )
- getCompoundTag ( )
- hasMeta ( )
- DYE
- isAxe ( )
- isSilkTouch ( )
- isSword ( )
- useOn ( )
- setDamage ( )
- SHEARS
- DIRT
- isHoe ( )
- FIRE_CHARGE
- ANVIL
- GRASS
- getMaxStackSize ( )
- setNamedTag ( )
- setLore ( )
- CARROT
- WHEAT_SEEDS
- addEnchantment ( )
- getMaxDurability ( )
- equalsExact ( )
- getEnchantments ( )
- FLINT_STEEL
- isArmor ( )
Related Classes
- java.util.Random
- java.util.concurrent.ThreadLocalRandom
- cn.nukkit.Player
- cn.nukkit.Server
- cn.nukkit.command.CommandSender
- cn.nukkit.level.Level
- cn.nukkit.utils.TextFormat
- cn.nukkit.entity.Entity
- cn.nukkit.level.Position
- cn.nukkit.math.Vector3
- cn.nukkit.block.Block
- cn.nukkit.utils.Utils
- cn.nukkit.nbt.tag.CompoundTag
- cn.nukkit.nbt.tag.ListTag
- cn.nukkit.event.entity.EntityDamageByEntityEvent
- cn.nukkit.blockentity.BlockEntity
- cn.nukkit.item.ItemTool
- cn.nukkit.event.player.PlayerInteractEvent
- cn.nukkit.blockentity.BlockEntityChest
- cn.nukkit.block.BlockAir
- cn.nukkit.entity.EntityLiving
- cn.nukkit.inventory.PlayerInventory
- cn.nukkit.utils.MainLogger
- cn.nukkit.event.entity.EntityDamageEvent
- cn.nukkit.entity.item.EntityItem
Java Code Examples for cn.nukkit.item.Item#GRASS
The following examples show how to use
cn.nukkit.item.Item#GRASS .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TreeGenerator.java From Nukkit with GNU General Public License v3.0 | 4 votes |
protected boolean canGrowInto(int id) { return id == Item.AIR || id == Item.LEAVES || id == Item.GRASS || id == Item.DIRT || id == Item.LOG || id == Item.LOG2 || id == Item.SAPLING || id == Item.VINE; }
Example 2
Source File: TreeGenerator.java From Jupiter with GNU General Public License v3.0 | 2 votes |
/** * returns whether or not a tree can grow into a block * For example, a tree will not grow into stone */ protected boolean canGrowInto(int id) { return id == Item.AIR || id == Item.LEAVES || id == Item.GRASS || id == Item.DIRT || id == Item.LOG || id == Item.LOG2 || id == Item.SAPLING || id == Item.VINE; }
Example 3
Source File: TreeGenerator.java From Nukkit with GNU General Public License v3.0 | 2 votes |
/** * returns whether or not a tree can grow into a block * For example, a tree will not grow into stone */ protected boolean canGrowInto(int id) { return id == Item.AIR || id == Item.LEAVES || id == Item.GRASS || id == Item.DIRT || id == Item.LOG || id == Item.LOG2 || id == Item.SAPLING || id == Item.VINE; }