Class PartReaderAspectEvent<P extends IPartTypeReader<P,S>,S extends IPartStateReader<P>,A extends IAspectRead>
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.PartReaderAspectEvent<P,S,A>
public class PartReaderAspectEvent<P extends IPartTypeReader<P,S>,S extends IPartStateReader<P>,A extends IAspectRead>
extends PartAspectEvent<P,S,A>
An event that is posted in the Forge event bus when a reader aspect was written by a player.
The resulting itemstack can be modified.
-
Constructor Summary
ConstructorDescriptionPartReaderAspectEvent
(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
Modifier and TypeMethodDescriptionnet.minecraft.world.item.ItemStack
void
setItemStack
(net.minecraft.world.item.ItemStack itemStack) 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
-
PartReaderAspectEvent
public PartReaderAspectEvent(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() -
setItemStack
public void setItemStack(net.minecraft.world.item.ItemStack itemStack)
-