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

Method getBlockState

src/main/java/net/minecraft/world/World.java:845–856  ·  view source on GitHub ↗
(BlockPos pos)

Source from the content-addressed store, hash-verified

843 }
844
845 public IBlockState getBlockState(BlockPos pos)
846 {
847 if (!this.isValid(pos))
848 {
849 return Blocks.air.getDefaultState();
850 }
851 else
852 {
853 Chunk chunk = this.getChunkFromBlockCoords(pos);
854 return chunk.getBlockState(pos);
855 }
856 }
857
858 /**
859 * Checks whether its daytime by seeing if the light subtracted from the skylight is less than 4

Callers 15

updateMethod · 0.95
addRainParticlesMethod · 0.95
doRenderMethod · 0.95
renderShadowMethod · 0.95
onPlayerDestroyBlockMethod · 0.95
dispenseStackMethod · 0.95
dispenseStackMethod · 0.95
processCommandMethod · 0.95
processCommandMethod · 0.95
processCommandMethod · 0.95
processCommandMethod · 0.95
processCommandMethod · 0.95

Calls 4

isValidMethod · 0.95
getBlockStateMethod · 0.95
getDefaultStateMethod · 0.80

Tested by 1

processCommandMethod · 0.76