MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / getStateId

Method getStateId

src/main/java/net/minecraft/block/Block.java:162–166  ·  view source on GitHub ↗

Get a unique ID for the given BlockState, containing both BlockID and metadata

(IBlockState state)

Source from the content-addressed store, hash-verified

160 * Get a unique ID for the given BlockState, containing both BlockID and metadata
161 */
162 public static int getStateId(IBlockState state)
163 {
164 Block block = state.getBlock();
165 return getIdFromBlock(block) + (block.getMetaFromState(state) << 12);
166 }
167
168 public static Block getBlockById(int id)
169 {

Callers 12

onPlayerDestroyBlockMethod · 0.95
tryHarvestBlockMethod · 0.95
getBlockStateIdMethod · 0.95
func_151260_cMethod · 0.95
updateFallStateMethod · 0.95
playParticlesMethod · 0.95
func_174899_aMethod · 0.95
setHeldBlockStateMethod · 0.95
onLivingUpdateMethod · 0.95
createEatingParticlesMethod · 0.95
destroyBlockMethod · 0.95

Calls 3

getIdFromBlockMethod · 0.95
getMetaFromStateMethod · 0.95
getBlockMethod · 0.65

Tested by

no test coverage detected