ProtectionIntegration

Types

Link copied to clipboard
Defines how methods in this protection integration are allowed to be called

Functions

Link copied to clipboard
abstract fun canBreak(player: OfflinePlayer, item: ItemStack, location: Location): Boolean
Checks if that OfflinePlayer can break a block at that Location using that ItemStack.
open fun canBreak(tileEntity: TileEntity, item: ItemStack, location: Location): Boolean
Checks if that TileEntity can break a block at that Location using that ItemStack.
Link copied to clipboard
abstract fun canHurtEntity(player: OfflinePlayer, entity: Entity, item: ItemStack): Boolean
Checks if the OfflinePlayer can hurt the Entity with this ItemStack
open fun canHurtEntity(tileEntity: TileEntity, entity: Entity, item: ItemStack): Boolean
Checks if the TileEntity can hurt the Entity with this ItemStack
Link copied to clipboard
abstract fun canInteractWithEntity(player: OfflinePlayer, entity: Entity, item: ItemStack): Boolean
Checks if the OfflinePlayer can interact with the Entity using the ItemStack.
open fun canInteractWithEntity(tileEntity: TileEntity, entity: Entity, item: ItemStack): Boolean
Checks if the TileEntity can interact with the Entity using the ItemStack.
Link copied to clipboard
abstract fun canPlace(player: OfflinePlayer, item: ItemStack, location: Location): Boolean
Checks if that OfflinePlayer can place an ItemStack at that Location.
open fun canPlace(tileEntity: TileEntity, item: ItemStack, location: Location): Boolean
Checks if that TileEntity can place an ItemStack at that Location.
Link copied to clipboard
abstract fun canUseBlock(player: OfflinePlayer, item: ItemStack, location: Location): Boolean
Checks if the OfflinePlayer can interact with a block at that Location using that ItemStack.
open fun canUseBlock(tileEntity: TileEntity, item: ItemStack, location: Location): Boolean
Checks if the TileEntity can interact with a block at that Location using that ItemStack.
Link copied to clipboard
abstract fun canUseItem(player: OfflinePlayer, item: ItemStack, location: Location): Boolean
Checks if the OfflinePlayer can use that ItemStack at that Location.
open fun canUseItem(tileEntity: TileEntity, item: ItemStack, location: Location): Boolean
Checks if the TileEntity can use that ItemStack at that Location.
Link copied to clipboard
Specifies from which thread methods in this protection integration are allowed to be called.