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