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

Method getBlock

src/main/java/net/minecraft/world/chunk/Chunk.java:546–564  ·  view source on GitHub ↗
(final int x, final int y, final int z)

Source from the content-addressed store, hash-verified

544 }
545
546 public Block getBlock(final int x, final int y, final int z)
547 {
548 try
549 {
550 return this.getBlock0(x & 15, y, z & 15);
551 }
552 catch (ReportedException reportedexception)
553 {
554 CrashReportCategory crashreportcategory = reportedexception.getCrashReport().makeCategory("Block being got");
555 crashreportcategory.addCrashSectionCallable("Location", new Callable<String>()
556 {
557 public String call() throws Exception
558 {
559 return CrashReportCategory.getCoordinateInfo(new BlockPos(Chunk.this.xPosition * 16 + x, y, Chunk.this.zPosition * 16 + z));
560 }
561 });
562 throw reportedexception;
563 }
564 }
565
566 public Block getBlock(final BlockPos pos)
567 {

Callers 9

getVisibleFacingsMethod · 0.95
updateMapDataMethod · 0.95
getBlockLightOpacityMethod · 0.95
createNewTileEntityMethod · 0.95
addTileEntityMethod · 0.95
func_150804_bMethod · 0.95
func_150811_fMethod · 0.95

Calls 7

getBlock0Method · 0.95
makeCategoryMethod · 0.80
getCrashReportMethod · 0.80
getXMethod · 0.65
getYMethod · 0.65
getZMethod · 0.65

Tested by

no test coverage detected