Pylon Simple Multiblock
A multiblock that is made of a predefined set of components.
Automatically creates ghost blocks to show how to build your multiblock.
Automatically handles different possible rotations of your multiblock.
If you need something more flexible (eg: a fluid tank that can have up to 10 fluid casings added to increase the capacity), see PylonMultiblock.
Types
Represents a single block of a multiblock.
A block display that represents this block, showing the player what block needs to be placed in a specific location.
Represents a Pylon block component of a multiblock.
Represents a vanilla component of a multiblock, which can have one or more materials.
Properties
All chunks containing at least one component of the multiblock
The positions and corresponding components of the multiblock.
Imagine the smallest square containing the multiblock; this is the radius of that square.
Functions
Returns false if any entity is unloaded or does not exist.
Warning: You should not call this yourself. If you want to know if the multiblock is formed, use isFormedAndFullyLoaded(), which will read from a cache, so is much faster.
Returns true if every component of the multiblock is loaded AND the multiblock is formed. Reads from a cache, so call as often as you want.
Returns false if the block holds no entity with the provided name, the entity is unloaded or does not physically exist.
Should return true if there is any scenario in which this block's position could be part of a formed multiblock.
Called when the multiblock is formed (i.e., was not formed before, but now is). This includes when the multiblock was previously formed, unloaded, and loaded again.
Called when the multiblock is unformed (i.e., was formed before, but now is not). This includes when a part of the multiblock is unloaded, and the multiblock becomes unformed because of it.
Returns all the valid configurations of the multiblock. If any of these is satisfied, the multiblock will be considered complete.