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 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)