Class RegisterPartCapabilitiesEvent
java.lang.Object
net.neoforged.bus.api.Event
org.cyclops.integrateddynamics.core.part.event.RegisterPartCapabilitiesEvent
- All Implemented Interfaces:
net.neoforged.fml.event.IModBusEvent
public class RegisterPartCapabilitiesEvent
extends net.neoforged.bus.api.Event
implements net.neoforged.fml.event.IModBusEvent
An event to link block capabilities to part capabilities.
This assumes part can expose volatile capabilities.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final net.minecraft.world.level.block.entity.BlockEntityType
<? extends BlockEntityMultipartTicking> protected final net.neoforged.neoforge.capabilities.RegisterCapabilitiesEvent
-
Constructor Summary
ConstructorDescriptionRegisterPartCapabilitiesEvent
(net.neoforged.neoforge.capabilities.RegisterCapabilitiesEvent registerCapabilitiesEvent, net.minecraft.world.level.block.entity.BlockEntityType<? extends BlockEntityMultipartTicking> blockEntityType) -
Method Summary
Modifier and TypeMethodDescription<T> void
register
(net.neoforged.neoforge.capabilities.BlockCapability<T, net.minecraft.core.Direction> blockCapability, PartCapability<T> partCapability)
-
Field Details
-
registerCapabilitiesEvent
protected final net.neoforged.neoforge.capabilities.RegisterCapabilitiesEvent registerCapabilitiesEvent -
blockEntityType
protected final net.minecraft.world.level.block.entity.BlockEntityType<? extends BlockEntityMultipartTicking> blockEntityType
-
-
Constructor Details
-
RegisterPartCapabilitiesEvent
public RegisterPartCapabilitiesEvent(net.neoforged.neoforge.capabilities.RegisterCapabilitiesEvent registerCapabilitiesEvent, net.minecraft.world.level.block.entity.BlockEntityType<? extends BlockEntityMultipartTicking> blockEntityType)
-
-
Method Details
-
register
public <T> void register(net.neoforged.neoforge.capabilities.BlockCapability<T, net.minecraft.core.Direction> blockCapability, PartCapability<T> partCapability)
-