Package dev.espi.protectionstones
Class PSProtectBlock
java.lang.Object
dev.espi.protectionstones.PSProtectBlock
Object to represent a protection block as defined in config (blocks folder). The fields are the exact same as
the ones in the config.
-
Field Summary
Modifier and TypeFieldDescriptionboolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
int
double
int
boolean
int
boolean
boolean
double
double
double
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
double
int
int
boolean
boolean
double
int
int
int
int
int
int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.inventory.ItemStack
Get the protection block item for this specific protection block.
-
Field Details
-
type
-
alias
-
description
-
restrictObtaining
public boolean restrictObtaining -
worldListType
-
worlds
-
preventBlockPlaceInRestrictedWorld
public boolean preventBlockPlaceInRestrictedWorld -
allowPlacingInWild
public boolean allowPlacingInWild -
placingBypassesWGPassthrough
-
distanceBetweenClaims
public int distanceBetweenClaims -
xRadius
public int xRadius -
yRadius
public int yRadius -
zRadius
public int zRadius -
chunkRadius
public int chunkRadius -
homeXOffset
public double homeXOffset -
homeYOffset
public double homeYOffset -
homeZOffset
public double homeZOffset -
flags
-
allowedFlagsRaw
-
priority
public int priority -
allowOverlapUnownedRegions
public boolean allowOverlapUnownedRegions -
allowOtherRegionsToOverlap
-
allowMerging
public boolean allowMerging -
allowedMergingIntoTypes
-
displayName
-
lore
-
enchantedEffect
public boolean enchantedEffect -
price
public double price -
allowCraftWithCustomRecipe
public boolean allowCraftWithCustomRecipe -
customRecipe
-
recipeAmount
public int recipeAmount -
customModelData
public int customModelData -
taxAmount
public double taxAmount -
taxPeriod
public int taxPeriod -
taxPaymentTime
public int taxPaymentTime -
startWithTaxAutopay
public boolean startWithTaxAutopay -
tenantRentRole
-
landlordStillOwner
public boolean landlordStillOwner -
autoHide
public boolean autoHide -
autoMerge
public boolean autoMerge -
noDrop
public boolean noDrop -
preventPistonPush
public boolean preventPistonPush -
preventExplode
public boolean preventExplode -
destroyRegionWhenExplode
public boolean destroyRegionWhenExplode -
preventSilkTouch
public boolean preventSilkTouch -
costToPlace
public double costToPlace -
allowSmeltItem
public boolean allowSmeltItem -
allowUseInCrafting
public boolean allowUseInCrafting -
allowShiftRightBreak
public boolean allowShiftRightBreak -
preventTeleportIn
public boolean preventTeleportIn -
noMovingWhenTeleportWaiting
public boolean noMovingWhenTeleportWaiting -
tpWaitingSeconds
public int tpWaitingSeconds -
preventPsGet
public boolean preventPsGet -
preventPsHome
public boolean preventPsHome -
permission
-
eventsEnabled
public boolean eventsEnabled -
regionCreateCommands
-
regionDestroyCommands
-
regionFlags
-
allowedFlags
-
-
Constructor Details
-
PSProtectBlock
public PSProtectBlock()
-
-
Method Details
-
createItem
public org.bukkit.inventory.ItemStack createItem()Get the protection block item for this specific protection block.- Returns:
- the item with NBT and other metadata to signify that it was created by protection stones
-