Interface BaseClassRegistration
@Experimental
@NonExtendable
public interface BaseClassRegistration
Allows add-ons to notify AE2 of their
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
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 ownIPartHost
, 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 ofBlockEntity
, and not for arbitrary interfaces.- See Also:
-