Package me.keehl.elevators.api.models
Interface IElevatorType
-
- All Superinterfaces:
Config,IConfigElevatorType
public interface IElevatorType extends IConfigElevatorType
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface me.keehl.elevators.api.services.configs.versions.IConfigElevatorType
IConfigElevatorType.IConfigActions
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanElevatorBeDyed()booleancanElevatorExplode()booleancheckDestinationElevatorType()booleandoesElevatorRequirePermissions()java.util.List<IElevatorAction>getActionsDown()java.util.List<IElevatorAction>getActionsUp()java.util.List<java.lang.String>getDisabledSettings()ILocaleComponentgetDisplayName()java.lang.StringgetDyePermission()java.util.List<ILocaleComponent>getHolographicLines()java.util.List<ILocaleComponent>getLore()intgetMaxDistanceAllowedBetweenElevators()intgetMaxSolidBlocksAllowedBetweenElevators()intgetMaxStackSize()java.util.List<IElevatorRecipeGroup>getRecipeGroups()java.util.Map<java.lang.String,IElevatorRecipeGroup>getRecipeMap()java.lang.StringgetTypeKey()java.lang.StringgetUsePermission()voidsetCanDye(boolean supportDying)Set whether a recipe for this elevator type can produce a colored elevator.voidsetCanElevatorExplode(boolean canExplode)Set whether the elevator can explode from creepers, tnt, etc.voidsetCheckDestinationElevatorType(boolean checkType)Sets whether the elevator must teleport to destination elevator of the same type.voidsetDisplayName(ILocaleComponent displayName)Sets the elevators ItemStack display name.voidsetDyePermission(java.lang.String dyePermission)Sets the elevators dye permission.voidsetElevatorRequiresPermissions(boolean checkPerms)Set whether the elevator should check permissions to allow operation.voidsetHologramLines(java.util.List<ILocaleComponent> holoLines)Set the lines that should appear over an elevator of this type.voidsetLore(java.util.List<ILocaleComponent> loreLines)Set the lines that should appear in an itemstack of this type.voidsetMaxDistanceAllowedBetweenElevators(int maxDistance)Sets the maximum distance that an elevator will search for a destination elevator.voidsetMaxSolidBlocksAllowedBetweenElevators(int maxSolidBlocks)Sets the maximum amount of non-air blocks that can be between the origin and destination elevator before it stops searching.voidsetMaxStackSize(int maxStackSize)Sets the max stack size of an elevator ItemStackvoidsetShouldAllowIndividualEdit(boolean allowIndividualEdit)Set whether users can open the settings-edit menu of an elevator type.voidsetShouldValidateColor(boolean checkColor)Set whether an elevator can be teleported to if the destination is a separate color than the origin.voidsetStopsObstructedTeleportation(boolean stopsObstruction)Set whether an elevator can be teleported to if the destination will place the player inside of a block.voidsetUsePermission(java.lang.String usePermission)Sets the elevators use permission.booleanshouldAllowIndividualEdit()booleanshouldStopObstructedTeleport()booleanshouldValidateSameColor()voidupdateAllHolograms(boolean chunkCheck)-
Methods inherited from interface me.keehl.elevators.api.util.config.Config
onLoad, onSave, setKey, setNode
-
Methods inherited from interface me.keehl.elevators.api.services.configs.versions.IConfigElevatorType
getActionsConfig
-
-
-
-
Method Detail
-
getTypeKey
java.lang.String getTypeKey()
- Returns:
- the type name of the elevator.
-
getActionsUp
java.util.List<IElevatorAction> getActionsUp()
-
getActionsDown
java.util.List<IElevatorAction> getActionsDown()
-
getRecipeGroups
java.util.List<IElevatorRecipeGroup> getRecipeGroups()
-
getDisabledSettings
java.util.List<java.lang.String> getDisabledSettings()
- Specified by:
getDisabledSettingsin interfaceIConfigElevatorType
-
getHolographicLines
java.util.List<ILocaleComponent> getHolographicLines()
- Specified by:
getHolographicLinesin interfaceIConfigElevatorType
-
shouldAllowIndividualEdit
boolean shouldAllowIndividualEdit()
- Specified by:
shouldAllowIndividualEditin interfaceIConfigElevatorType
-
getUsePermission
java.lang.String getUsePermission()
- Specified by:
getUsePermissionin interfaceIConfigElevatorType
-
getDyePermission
java.lang.String getDyePermission()
- Specified by:
getDyePermissionin interfaceIConfigElevatorType
-
getMaxStackSize
int getMaxStackSize()
- Specified by:
getMaxStackSizein interfaceIConfigElevatorType- Returns:
- the max stack size of an elevator ItemStack
-
canElevatorExplode
boolean canElevatorExplode()
- Specified by:
canElevatorExplodein interfaceIConfigElevatorType- Returns:
- whether the elevator can explode from creepers, tnt, etc.
-
getRecipeMap
java.util.Map<java.lang.String,IElevatorRecipeGroup> getRecipeMap()
- Specified by:
getRecipeMapin interfaceIConfigElevatorType
-
canElevatorBeDyed
boolean canElevatorBeDyed()
- Specified by:
canElevatorBeDyedin interfaceIConfigElevatorType- Returns:
- where a recipe for this elevator type can produce a colored elevator.
-
shouldValidateSameColor
boolean shouldValidateSameColor()
- Specified by:
shouldValidateSameColorin interfaceIConfigElevatorType- Returns:
- controls whether an elevator can be teleported to if the destination is a separate color than the origin.
-
doesElevatorRequirePermissions
boolean doesElevatorRequirePermissions()
- Specified by:
doesElevatorRequirePermissionsin interfaceIConfigElevatorType- Returns:
- controls whether the elevator should check permissions to allow operation. This is mostly used for those small, local servers where permissions plugins aren't used.
-
checkDestinationElevatorType
boolean checkDestinationElevatorType()
- Specified by:
checkDestinationElevatorTypein interfaceIConfigElevatorType- Returns:
- controls whether the elevator must teleport to destination elevator of the same type.
-
getDisplayName
ILocaleComponent getDisplayName()
- Specified by:
getDisplayNamein interfaceIConfigElevatorType- Returns:
- the elevators ItemStack display name.
-
getLore
java.util.List<ILocaleComponent> getLore()
- Specified by:
getLorein interfaceIConfigElevatorType- Returns:
- the lore of an elevator ItemStack
-
getMaxDistanceAllowedBetweenElevators
int getMaxDistanceAllowedBetweenElevators()
- Specified by:
getMaxDistanceAllowedBetweenElevatorsin interfaceIConfigElevatorType- Returns:
- the maximum distance that an elevator will search for a destination elevator.
-
getMaxSolidBlocksAllowedBetweenElevators
int getMaxSolidBlocksAllowedBetweenElevators()
- Specified by:
getMaxSolidBlocksAllowedBetweenElevatorsin interfaceIConfigElevatorType- Returns:
- the maximum amount of non-air blocks that can be between the origin and destination elevator before it stops searching.
-
shouldStopObstructedTeleport
boolean shouldStopObstructedTeleport()
- Specified by:
shouldStopObstructedTeleportin interfaceIConfigElevatorType- Returns:
- controls whether an elevator can be teleported to if the destination will place the player inside of a block.
-
setDisplayName
void setDisplayName(ILocaleComponent displayName)
Sets the elevators ItemStack display name.
-
setUsePermission
void setUsePermission(java.lang.String usePermission)
Sets the elevators use permission.
-
setDyePermission
void setDyePermission(java.lang.String dyePermission)
Sets the elevators dye permission.
-
setMaxDistanceAllowedBetweenElevators
void setMaxDistanceAllowedBetweenElevators(int maxDistance)
Sets the maximum distance that an elevator will search for a destination elevator.
-
setMaxStackSize
void setMaxStackSize(int maxStackSize)
Sets the max stack size of an elevator ItemStack
-
setMaxSolidBlocksAllowedBetweenElevators
void setMaxSolidBlocksAllowedBetweenElevators(int maxSolidBlocks)
Sets the maximum amount of non-air blocks that can be between the origin and destination elevator before it stops searching.
-
setCheckDestinationElevatorType
void setCheckDestinationElevatorType(boolean checkType)
Sets whether the elevator must teleport to destination elevator of the same type.
-
setElevatorRequiresPermissions
void setElevatorRequiresPermissions(boolean checkPerms)
Set whether the elevator should check permissions to allow operation. This is mostly used for those small, local servers where permissions plugins aren't used.
-
setCanElevatorExplode
void setCanElevatorExplode(boolean canExplode)
Set whether the elevator can explode from creepers, tnt, etc.
-
setCanDye
void setCanDye(boolean supportDying)
Set whether a recipe for this elevator type can produce a colored elevator.
-
setStopsObstructedTeleportation
void setStopsObstructedTeleportation(boolean stopsObstruction)
Set whether an elevator can be teleported to if the destination will place the player inside of a block.
-
setShouldValidateColor
void setShouldValidateColor(boolean checkColor)
Set whether an elevator can be teleported to if the destination is a separate color than the origin.
-
setShouldAllowIndividualEdit
void setShouldAllowIndividualEdit(boolean allowIndividualEdit)
Set whether users can open the settings-edit menu of an elevator type.
-
setHologramLines
void setHologramLines(java.util.List<ILocaleComponent> holoLines)
Set the lines that should appear over an elevator of this type.
-
updateAllHolograms
void updateAllHolograms(boolean chunkCheck)
-
setLore
void setLore(java.util.List<ILocaleComponent> loreLines)
Set the lines that should appear in an itemstack of this type.
-
-