Class PartWriterAspectEvent<P extends IPartTypeWriter<P,S>,S extends IPartStateWriter<P>,A extends IAspectWrite>
java.lang.Object
net.neoforged.bus.api.Event
org.cyclops.integrateddynamics.core.part.event.PartEvent<P,S>
org.cyclops.integrateddynamics.core.part.event.PartAspectEvent<P,S,A>
org.cyclops.integrateddynamics.core.part.event.PartWriterAspectEvent<P,S,A>
public class PartWriterAspectEvent<P extends IPartTypeWriter<P,S>,S extends IPartStateWriter<P>,A extends IAspectWrite>
extends PartAspectEvent<P,S,A>
An event that is posted in the Forge event bus when a write aspect is enabled by a player.
-
Constructor Summary
ConstructorDescriptionPartWriterAspectEvent
(INetwork network, IPartNetwork partNetwork, PartTarget target, P partType, S partState, net.minecraft.world.entity.player.Player entityPlayer, A aspect, net.minecraft.world.item.ItemStack itemStack) -
Method Summary
Methods inherited from class org.cyclops.integrateddynamics.core.part.event.PartAspectEvent
getAspect, getEntityPlayer
Methods inherited from class org.cyclops.integrateddynamics.core.part.event.PartEvent
getNetwork, getPartNetwork, getPartState, getPartType, getTarget
-
Constructor Details
-
PartWriterAspectEvent
public PartWriterAspectEvent(INetwork network, IPartNetwork partNetwork, PartTarget target, P partType, S partState, @Nullable net.minecraft.world.entity.player.Player entityPlayer, A aspect, net.minecraft.world.item.ItemStack itemStack)
-
-
Method Details
-
getItemStack
public net.minecraft.world.item.ItemStack getItemStack()
-