Java Code Examples for org.bukkit.craftbukkit.util.CraftMagicNumbers#getId()
The following examples show how to use
org.bukkit.craftbukkit.util.CraftMagicNumbers#getId() .
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: CraftFallingBlock.java From Kettle with GNU General Public License v3.0 | 4 votes |
public int getBlockId() { return CraftMagicNumbers.getId(getHandle().getBlock().getBlock()); }
Example 2
Source File: CraftWorld.java From Kettle with GNU General Public License v3.0 | 4 votes |
public int getBlockTypeIdAt(int x, int y, int z) { return CraftMagicNumbers.getId(world.getBlockState(new BlockPos(x, y, z)).getBlock()); }
Example 3
Source File: CraftBlock.java From Kettle with GNU General Public License v3.0 | 4 votes |
@Deprecated @Override public int getTypeId() { return CraftMagicNumbers.getId(chunk.getHandle().getBlockState(new BlockPos(this.x, this.y, this.z)).getBlock()); }
Example 4
Source File: CraftItemStack.java From Kettle with GNU General Public License v3.0 | 4 votes |
@Override public int getTypeId() { return handle != null ? CraftMagicNumbers.getId(handle.getItem()) : 0; }
Example 5
Source File: CraftFallingSand.java From Thermos with GNU General Public License v3.0 | 4 votes |
public int getBlockId() { return CraftMagicNumbers.getId(getHandle().field_145811_e); }
Example 6
Source File: CraftBlock.java From Thermos with GNU General Public License v3.0 | 4 votes |
@Deprecated @Override public int getTypeId() { return CraftMagicNumbers.getId(chunk.getHandle().getBlock(this.x & 0xF, this.y & 0xFF, this.z & 0xF)); }
Example 7
Source File: CraftItemStack.java From Thermos with GNU General Public License v3.0 | 4 votes |
@Override public int getTypeId() { return handle != null ? CraftMagicNumbers.getId(handle.getItem()) : 0; }