Pylon Block
Represents a Pylon block in the world.
All custom Pylon blocks extend this class. Every instance of this class is wrapping a real block in the world, and is stored in BlockStorage. All new block types must be registered using register.
An implementation of PylonBlock must have two constructors: one that takes a Block and a BlockCreateContext, and one that takes a Block and a PersistentDataContainer. The first constructor is known as the "create constructor", and is used when the block is created in the world. The second constructor is known as the "load constructor", and is used to reconstruct the block when the chunk containing the block is loaded.
See also
Inheritors
Constructors
Properties
A packet based ItemDisplay sent to players with customBlockTextures enabled.
Set this to true if your block should not have a blockTextureEntity for custom models/textures.
All the data needed to create or load the block.
Functions
Returns the item that should be used to display the block's texture.
Returns the item that the block should drop.
Returns the item that should be given when the block is middle clicked.
Returns settings associated with the block.
WAILA is the text that shows up when looking at a block to tell you what the block is.
Called when the block is saved.
Called when debug info is requested for the block by someone using the DebugWaxedWeatheredCutCopperStairs. If there is any transient data that can be useful for debugging, you're encouraged to serialize it here.