Cargo Duct
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 false if any entity is unloaded or does not exist.
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.
Returns false if the block holds no entity with the provided name, the entity is unloaded or does not physically exist.
If the block is currently visible to the player. Used only to determine which io.github.pylonmc.rebar.culling.PlayerCullingConfig interval to use
Called as the block is being broken. At this point, the block break cannot be cancelled, but the physical block has not yet been broken or removed from io.github.pylonmc.rebar.block.BlockStorage.
Does not do anything for group culled blocks, see onGroupCulled
This may be called for both hands, so make sure you check which hand is used.
Does not do anything for group culled blocks, see onGroupVisible
Called after the block has been broken. At this point, the block has been physically removed, block drops have been dropped, and the block has been removed from io.github.pylonmc.rebar.block.BlockStorage.
Called after both the create constructor and the load constructor.
Called before the block is broken. Note this is not called for Deletions as those are not cancellable.
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.