Interface BaseClassRegistration
BlockEntity
classes that do derive from AE2 block entity classes. AE2
will try to add default tooltip providers for common AE2 API interfaces for these addon block entity classes.-
Method Summary
Modifier and TypeMethodDescriptionvoid
addBaseBlockEntity
(Class<? extends net.minecraft.world.level.block.entity.BlockEntity> blockEntityClass, Class<? extends net.minecraft.world.level.block.Block> blockClass) Adds AE2s tooltip providers for the following interfaces to a given block entity/block and their subclasses.<T extends net.minecraft.world.level.block.entity.BlockEntity & IPartHost>
voidaddPartHost
(Class<T> blockEntityClass, Class<? extends net.minecraft.world.level.block.Block> blockClass) Adds AE2s part tooltip providers for third partyIPartHost
implementations.
-
Method Details
-
addBaseBlockEntity
void addBaseBlockEntity(Class<? extends net.minecraft.world.level.block.entity.BlockEntity> blockEntityClass, Class<? extends net.minecraft.world.level.block.Block> blockClass) Adds AE2s tooltip providers for the following interfaces to a given block entity/block and their subclasses.IGridConnectedBlockEntity
IAEPowerStorage
Please note that AE2 will already register these providers for its own block entity base class (AEBaseBlockEntity). This method is only useful if you implement any of the interfaces listed above on your own block entity class, which does not extend from an internal AE2 block entity base class.
This method is needed because some tooltip mods only allow registering providers for subclasses of
BlockEntity
, and not for arbitrary interfaces.- See Also:
-
addPartHost
<T extends net.minecraft.world.level.block.entity.BlockEntity & IPartHost> void addPartHost(Class<T> blockEntityClass, Class<? extends net.minecraft.world.level.block.Block> blockClass) Adds AE2s part tooltip providers for third partyIPartHost
implementations.Please note that AE2 will already register these providers for its own part host (CableBusBlockEntity). This method is only useful if your addon implements its own
IPartHost
, which does not extend from an internal AE2 block entity base class.This method is needed because some tooltip mods only allow registering providers for subclasses of
BlockEntity
, and not for arbitrary interfaces.- See Also:
-