Skip to content
cakoyo edited this page May 15, 2019 · 3 revisions

This class contains some useful for Blocks

getSecondHalfChest

getSecondHalfChest can get another side of a DoubleChest, if it not a chest or not a DoubleChest, will return null;

Demo

Block anotherOneChest = Blocks.getSecondHalfChest(aChestBlock);

getAttached

getAttached can get a block attached block.(e.g Sign attached Block, Hopper attached Chest)
If no attached block founded, it will return null.

Demo

Block attachedBlock = Blocks.getAttached(wantCheckBlock);

Clone this wiki locally