Rebar Block
Represents a Rebar block in the world.
All custom Rebar 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 RebarBlock 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 who have 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 a map of custom block state properties to be used for the block texture item. These properties will be merged with the vanilla block state properties of the block.
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 after both the create constructor and the load constructor.
Call this method to refresh the block texture entity's item to be the result of getBlockTextureItem, or a barrier if that returns null.
Schedules the block texture item to be refreshed on the next server tick. See refreshBlockTextureItem.
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.