yarn/mappings/net/minecraft/block/BlockWithEntity.mapping

19 lines
1.1 KiB
Plaintext

CLASS net/minecraft/class_2237 net/minecraft/block/BlockWithEntity
COMMENT A convenience class for a block with a {@link net.minecraft.block.entity.BlockEntity}.
COMMENT While blocks with block entity only have to implement {@link BlockEntityProvider}
COMMENT and do not have to subclass this, it overrides several methods to delegate its logic
COMMENT to the block entity. However, <strong>it is generally easier to just implement
COMMENT {@link BlockEntityProvider}</strong>.
COMMENT
COMMENT <p><strong>Subclasses must override {@link #getRenderType}</strong> to render the
COMMENT block entity. By default, all block entities are rendered invisible, which is not
COMMENT intended in most, if not all, cases.
COMMENT
COMMENT @see net.minecraft.block.entity.BlockEntity
COMMENT @see BlockEntityProvider
METHOD method_31618 checkType (Lnet/minecraft/class_2591;Lnet/minecraft/class_2591;Lnet/minecraft/class_5558;)Lnet/minecraft/class_5558;
COMMENT {@return the ticker if the given type and expected type are the same, or {@code null} if they are different}
ARG 0 givenType
ARG 1 expectedType
ARG 2 ticker