Interface Cancellable

All Known Implementing Classes:
AddBehaviorTreePacketReceive, AddBehaviorTreePacketSend, AddEntityPacketReceive, AddEntityPacketSend, AddHangingEntityPacketReceive, AddHangingEntityPacketSend, AddItemEntityPacketReceive, AddItemEntityPacketSend, AddPaintingPacketReceive, AddPaintingPacketSend, AddPlayerPacketReceive, AddPlayerPacketSend, AdventureSettingsPacketReceive, AdventureSettingsPacketSend, AnimatePacketReceive, AnimatePacketSend, AnvilDamagePacketReceive, AnvilDamagePacketSend, AutomationClientConnectPacketReceive, AutomationClientConnectPacketSend, AvailableCommandsPacketReceive, AvailableCommandsPacketSend, AvailableEntityIdentifiersPacketReceive, AvailableEntityIdentifiersPacketSend, BiomeDefinitionListPacketReceive, BiomeDefinitionListPacketSend, BlockEntityDataPacketReceive, BlockEntityDataPacketSend, BlockEventPacketReceive, BlockEventPacketSend, BlockPickRequestPacketReceive, BlockPickRequestPacketSend, BookEditPacketReceive, BookEditPacketSend, BossEventPacketReceive, BossEventPacketSend, CameraPacketReceive, CameraPacketSend, ChangeDimensionPacketReceive, ChangeDimensionPacketSend, ChunkRadiusUpdatedPacketReceive, ChunkRadiusUpdatedPacketSend, ClientboundChatPacket, ClientboundMapItemDataPacketReceive, ClientboundMapItemDataPacketSend, ClientboundPongResponsePacket, ClientboundStatusResponsePacket, ClientCacheBlobStatusPacketReceive, ClientCacheBlobStatusPacketSend, ClientCacheMissResponsePacketReceive, ClientCacheMissResponsePacketSend, ClientCacheStatusPacketReceive, ClientCacheStatusPacketSend, ClientToServerHandshakePacketReceive, ClientToServerHandshakePacketSend, CodeBuilderPacketReceive, CodeBuilderPacketSend, CommandBlockUpdatePacketReceive, CommandBlockUpdatePacketSend, CommandOutputPacketReceive, CommandOutputPacketSend, CommandRequestPacketReceive, CommandRequestPacketSend, CompletedUsingItemPacketReceive, CompletedUsingItemPacketSend, ContainerClosePacketReceive, ContainerClosePacketSend, ContainerOpenPacketReceive, ContainerOpenPacketSend, ContainerSetDataPacketReceive, ContainerSetDataPacketSend, CraftingDataPacketReceive, CraftingDataPacketSend, CraftingEventPacketReceive, CraftingEventPacketSend, CreativeContentPacketReceive, CreativeContentPacketSend, DebugInfoPacketReceive, DebugInfoPacketSend, DisconnectPacketReceive, DisconnectPacketSend, DownstreamPacketReceiveEvent, DownstreamPacketSendEvent, EducationSettingsPacketReceive, EducationSettingsPacketSend, EmoteListPacketReceive, EmoteListPacketSend, EmotePacketReceive, EmotePacketSend, EntityEventPacketReceive, EntityEventPacketSend, EntityFallPacketReceive, EntityFallPacketSend, EntityPickRequestPacketReceive, EntityPickRequestPacketSend, EventPacketReceive, EventPacketSend, ExplodePacketReceive, ExplodePacketSend, GameRulesChangedPacketReceive, GameRulesChangedPacketSend, GeyserLoginEvent, GuiDataPickItemPacketReceive, GuiDataPickItemPacketSend, HurtArmorPacketReceive, HurtArmorPacketSend, InteractPacketReceive, InteractPacketSend, InventoryContentPacketReceive, InventoryContentPacketSend, InventorySlotPacketReceive, InventorySlotPacketSend, InventoryTransactionPacketReceive, InventoryTransactionPacketSend, ItemFrameDropItemPacketReceive, ItemFrameDropItemPacketSend, ItemStackRequestPacketReceive, ItemStackRequestPacketSend, ItemStackResponsePacketReceive, ItemStackResponsePacketSend, LabTablePacketReceive, LabTablePacketSend, LecternUpdatePacketReceive, LecternUpdatePacketSend, LevelChunkPacketReceive, LevelChunkPacketSend, LevelEventGenericPacketReceive, LevelEventGenericPacketSend, LevelEventPacketReceive, LevelEventPacketSend, LevelSoundEvent1PacketReceive, LevelSoundEvent1PacketSend, LevelSoundEvent2PacketReceive, LevelSoundEvent2PacketSend, LevelSoundEventPacketReceive, LevelSoundEventPacketSend, LoadBedrockSkinEvent, LoginPacketReceive, LoginPacketSend, MapCreateLockedCopyPacketReceive, MapCreateLockedCopyPacketSend, MapInfoRequestPacketReceive, MapInfoRequestPacketSend, MobArmorEquipmentPacketReceive, MobArmorEquipmentPacketSend, MobEffectPacketReceive, MobEffectPacketSend, MobEquipmentPacketReceive, MobEquipmentPacketSend, ModalFormRequestPacketReceive, ModalFormRequestPacketSend, ModalFormResponsePacketReceive, ModalFormResponsePacketSend, MoveEntityAbsolutePacketReceive, MoveEntityAbsolutePacketSend, MoveEntityDeltaPacketReceive, MoveEntityDeltaPacketSend, MovePlayerPacketReceive, MovePlayerPacketSend, MultiplayerSettingsPacketReceive, MultiplayerSettingsPacketSend, NetworkChunkPublisherUpdatePacketReceive, NetworkChunkPublisherUpdatePacketSend, NetworkSettingsPacketReceive, NetworkSettingsPacketSend, NetworkStackLatencyPacketReceive, NetworkStackLatencyPacketSend, NpcRequestPacketReceive, NpcRequestPacketSend, OnScreenTextureAnimationPacketReceive, OnScreenTextureAnimationPacketSend, PacketViolationWarningPacketReceive, PacketViolationWarningPacketSend, PhotoTransferPacketReceive, PhotoTransferPacketSend, PlayerActionPacketReceive, PlayerActionPacketSend, PlayerArmorDamagePacketReceive, PlayerArmorDamagePacketSend, PlayerAuthInputPacketReceive, PlayerAuthInputPacketSend, PlayerEnchantOptionsPacketReceive, PlayerEnchantOptionsPacketSend, PlayerHotbarPacketReceive, PlayerHotbarPacketSend, PlayerInputPacketReceive, PlayerInputPacketSend, PlayerListPacketReceive, PlayerListPacketSend, PlayerSkinPacketReceive, PlayerSkinPacketSend, PlaySoundPacketReceive, PlaySoundPacketSend, PlayStatusPacketReceive, PlayStatusPacketSend, PositionTrackingDBClientRequestPacketReceive, PositionTrackingDBClientRequestPacketSend, PositionTrackingDBServerBroadcastPacketReceive, PositionTrackingDBServerBroadcastPacketSend, PurchaseReceiptPacketReceive, PurchaseReceiptPacketSend, RemoveEntityPacketReceive, RemoveEntityPacketSend, RemoveObjectivePacketReceive, RemoveObjectivePacketSend, RequestChunkRadiusPacketReceive, RequestChunkRadiusPacketSend, ResourcePackChunkDataPacketReceive, ResourcePackChunkDataPacketSend, ResourcePackChunkRequestPacketReceive, ResourcePackChunkRequestPacketSend, ResourcePackClientResponsePacketReceive, ResourcePackClientResponsePacketSend, ResourcePackDataInfoPacketReceive, ResourcePackDataInfoPacketSend, ResourcePacksInfoPacketReceive, ResourcePacksInfoPacketSend, ResourcePackStackPacketReceive, ResourcePackStackPacketSend, RespawnPacketReceive, RespawnPacketSend, RiderJumpPacketReceive, RiderJumpPacketSend, ScriptCustomEventPacketReceive, ScriptCustomEventPacketSend, ServerboundBlockEntityTagQuery, ServerboundChatPacket, ServerboundContainerButtonClickPacket, ServerboundContainerClosePacket, ServerboundCustomPayloadPacket, ServerboundPingRequestPacket, ServerboundSeenAdvancementsPacket, ServerboundSetCreativeModeSlotPacket, ServerboundStatusRequestPacket, ServerSettingsRequestPacketReceive, ServerSettingsRequestPacketSend, ServerSettingsResponsePacketReceive, ServerSettingsResponsePacketSend, ServerToClientHandshakePacketReceive, ServerToClientHandshakePacketSend, SessionConnectEvent, SetCommandsEnabledPacketReceive, SetCommandsEnabledPacketSend, SetDefaultGameTypePacketReceive, SetDefaultGameTypePacketSend, SetDifficultyPacketReceive, SetDifficultyPacketSend, SetDisplayObjectivePacketReceive, SetDisplayObjectivePacketSend, SetEntityDataPacketReceive, SetEntityDataPacketSend, SetEntityLinkPacketReceive, SetEntityLinkPacketSend, SetEntityMotionPacketReceive, SetEntityMotionPacketSend, SetHealthPacketReceive, SetHealthPacketSend, SetLastHurtByPacketReceive, SetLastHurtByPacketSend, SetLocalPlayerAsInitializedPacketReceive, SetLocalPlayerAsInitializedPacketSend, SetPlayerGameTypePacketReceive, SetPlayerGameTypePacketSend, SetScoreboardIdentityPacketReceive, SetScoreboardIdentityPacketSend, SetScorePacketReceive, SetScorePacketSend, SetSpawnPositionPacketReceive, SetSpawnPositionPacketSend, SetTimePacketReceive, SetTimePacketSend, SettingsCommandPacketReceive, SettingsCommandPacketSend, SetTitlePacketReceive, SetTitlePacketSend, ShowCreditsPacketReceive, ShowCreditsPacketSend, ShowProfilePacketReceive, ShowProfilePacketSend, ShowStoreOfferPacketReceive, ShowStoreOfferPacketSend, SimpleEventPacketReceive, SimpleEventPacketSend, SpawnExperienceOrbPacketReceive, SpawnExperienceOrbPacketSend, SpawnParticleEffectPacketReceive, SpawnParticleEffectPacketSend, StartGamePacketReceive, StartGamePacketSend, StopSoundPacketReceive, StopSoundPacketSend, StructureBlockUpdatePacketReceive, StructureBlockUpdatePacketSend, StructureTemplateDataRequestPacketReceive, StructureTemplateDataRequestPacketSend, StructureTemplateDataResponsePacketReceive, StructureTemplateDataResponsePacketSend, SubClientLoginPacketReceive, SubClientLoginPacketSend, TakeItemEntityPacketReceive, TakeItemEntityPacketSend, TextPacketReceive, TextPacketSend, TickSyncPacketReceive, TickSyncPacketSend, TransferPacketReceive, TransferPacketSend, UnknownPacketReceive, UnknownPacketSend, UpdateAttributesPacketReceive, UpdateAttributesPacketSend, UpdateBlockPacketReceive, UpdateBlockPacketSend, UpdateBlockPropertiesPacketReceive, UpdateBlockPropertiesPacketSend, UpdateBlockSyncedPacketReceive, UpdateBlockSyncedPacketSend, UpdateEquipPacketReceive, UpdateEquipPacketSend, UpdatePlayerGameTypePacketReceive, UpdatePlayerGameTypePacketSend, UpdateSoftEnumPacketReceive, UpdateSoftEnumPacketSend, UpdateTradePacketReceive, UpdateTradePacketSend, UpstreamPacketReceiveEvent, UpstreamPacketSendEvent, VideoStreamConnectPacketReceive, VideoStreamConnectPacketSend

public interface Cancellable
An event that is able to be cancelled
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns true if the event has been cancelled
    void
    setCancelled​(boolean cancel)
    Set if an event is cancelled
  • Method Details

    • isCancelled

      boolean isCancelled()
      Returns true if the event has been cancelled
      Returns:
      True if cancelled
    • setCancelled

      void setCancelled(boolean cancel)
      Set if an event is cancelled
      Parameters:
      cancel - True if event should be cancelled.