Class PartReaderAspectEvent<P extends IPartTypeReader<P,S>,S extends IPartStateReader<P>,A extends IAspectRead>
java.lang.Object
net.minecraftforge.eventbus.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.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
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
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
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)
-