Class BlockEntityTypeMixin<T extends net.minecraft.world.level.block.entity.BlockEntity>
java.lang.Object
net.fabricmc.fabric.mixin.object.builder.BlockEntityTypeMixin<T>
- All Implemented Interfaces:
FabricBlockEntityType
public class BlockEntityTypeMixin<T extends net.minecraft.world.level.block.entity.BlockEntity>
extends Object
implements FabricBlockEntityType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddValidBlock(net.minecraft.world.level.block.Block block) Adds a block to the list of blocks that this block entity type can be used with.
-
Constructor Details
-
BlockEntityTypeMixin
public BlockEntityTypeMixin()
-
-
Method Details
-
addValidBlock
public void addValidBlock(net.minecraft.world.level.block.Block block) Description copied from interface:FabricBlockEntityTypeAdds a block to the list of blocks that this block entity type can be used with.- Specified by:
addValidBlockin interfaceFabricBlockEntityType- Parameters:
block- theBlockto add
-