public class CurseItemDropsSystem extends RefSystem
System for handling curseitemdrops mechanics. Systems contain game logic that operates on entities with specific component types.
java.lang.Object > RefSystem > CurseItemDropsSystem
Field Summary
portalWorld
final
PortalWorld
portalWorld
Field portalWorld.
cursedItemsInWorld
final
Set
cursedItemsInWorld
Field cursedItemsInWorld.
itemComponent
final
ItemComponent
itemComponent
Field itemComponent.
itemStack
final
ItemStack
itemStack
Field itemStack.
itemId
final
String
itemId
Field itemId.
adventureMeta
final
AdventureMetadata
adventureMeta
Field adventureMeta.
cursed
final
ItemStack
cursed
Field cursed.
Method Detail
onEntityAdded
public
void
onEntityAdded
(@Nonnull final Ref ref, @Nonnull final AddReason reason, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method onEntityAdded.
- Parameters:
@Nonnull final Refref@Nonnull final AddReasonreason@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer
onEntityRemove
public
void
onEntityRemove
(@Nonnull final Ref ref, @Nonnull final RemoveReason reason, @Nonnull final Store store, @Nonnull final CommandBuffer commandBuffer)
Method onEntityRemove.
- Parameters:
@Nonnull final Refref@Nonnull final RemoveReasonreason@Nonnull final Storestore@Nonnull final CommandBuffercommandBuffer