Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- ALLOWED_DISTANCE_TO_CHAIR - Static variable in class de.sprax2013.betterchairs.Settings
- applyChairProtections(Entity) - Static method in class de.sprax2013.betterchairs.ChairUtils
-
Examples for protections that could be applied:
ArmorStand.hasGravity()
=false
ArmorStand.isVisible()
=false
LivingEntity.getRemoveWhenFarAway()
=true
Projectile.doesBounce()
=false
Invulnerable =true
NoGravity =true
Silent =1
DisabledSlots =0b11111
(all) - applyRegeneration(HumanEntity, int) - Static method in class de.sprax2013.betterchairs.ChairUtils
- AUTO_ROTATE_PLAYER - Static variable in class de.sprax2013.betterchairs.Settings
B
C
- Chair - Class in de.sprax2013.betterchairs
-
Holds a spawned chair
Instances of this class get disposed as soon the player leaves the chair - CHAIR_ALLOW_AIR_BELOW - Static variable in class de.sprax2013.betterchairs.Settings
- CHAIR_NEED_AIR_ABOVE - Static variable in class de.sprax2013.betterchairs.Settings
- chairEntity - Variable in class de.sprax2013.betterchairs.Chair
- ChairManager - Class in de.sprax2013.betterchairs
-
This class should be instantiated as soon as possible inside
JavaPlugin.onEnable()
to ensure that other classes relying on it work as intended - ChairManager(JavaPlugin, ChairNMS) - Constructor for class de.sprax2013.betterchairs.ChairManager
- chairNMS - Variable in class de.sprax2013.betterchairs.ChairManager
- ChairNMS - Class in de.sprax2013.betterchairs
-
Provides abstraction to be used in maven modules with the specified spigot version
Why not just use the Fallback-ChairNMS in#onEnable()
? - ChairNMS() - Constructor for class de.sprax2013.betterchairs.ChairNMS
- chairs - Variable in class de.sprax2013.betterchairs.ChairManager
- ChairType - Enum in de.sprax2013.betterchairs
- ChairUtils - Class in de.sprax2013.betterchairs
-
This class provides utility methods intended to be used by BetterChairs's nms-classes
- ConfigHelper - Class in de.sprax2013.betterchairs
- create(Player, Block) - Method in class de.sprax2013.betterchairs.ChairManager
-
This method is a shortcut for
ChairManager.create(Player, Block, double)
withyOffset = ChairUtils#getSitOffset
- create(Player, Block, double) - Method in class de.sprax2013.betterchairs.ChairManager
-
Check if a chair can be spawned and call an Event.
If the event doesn't get cancelled, the player should then be able to sit.
IgnoresChairManager.hasChairsDisabled(OfflinePlayer)
- CUSTOM - Enum constant in enum de.sprax2013.betterchairs.ChairType
- CustomChairEntity - Interface in de.sprax2013.betterchairs
D
- de.sprax2013.betterchairs - package de.sprax2013.betterchairs
- de.sprax2013.betterchairs.events - package de.sprax2013.betterchairs.events
- destroy(Chair, boolean) - Method in class de.sprax2013.betterchairs.ChairManager
-
Calls
ChairManager.destroy(Chair, boolean, boolean)
withsameTickTeleport = false
- destroy(Chair, boolean, boolean) - Method in class de.sprax2013.betterchairs.ChairManager
- destroyAll(boolean) - Method in class de.sprax2013.betterchairs.ChairManager
- destroyAll(boolean, boolean) - Method in class de.sprax2013.betterchairs.ChairManager
- destroyOnNoPassenger() - Method in class de.sprax2013.betterchairs.Chair
-
Sometimes the
EntityDismountEvent
is not fired for ArmorStands (e.g. - didChairEntityMove(Location, double, double, double) - Static method in class de.sprax2013.betterchairs.ChairUtils
- disabled - Variable in class de.sprax2013.betterchairs.ChairManager
- disabledForDir - Variable in class de.sprax2013.betterchairs.ChairManager
E
- ERR_ANOTHER_PLUGIN_PREVENTING_SPAWN - Static variable in class de.sprax2013.betterchairs.Messages
- ERR_ASYNC_API_CALL - Static variable in class de.sprax2013.betterchairs.Messages
- ERR_NOT_CUSTOM_ENTITY - Static variable in class de.sprax2013.betterchairs.Messages
G
- getBlock() - Method in class de.sprax2013.betterchairs.Chair
- getBlockRotation(Block) - Method in class de.sprax2013.betterchairs.ChairNMS
- getBlockRotationLegacy(Block) - Static method in class de.sprax2013.betterchairs.ChairUtils
-
This method checks
Directional.getFacing()
(legacy API in the current Bukkit api) and inverts it to show the Block's rotation. - getChair() - Method in class de.sprax2013.betterchairs.events.PlayerEnterChairEvent
- getChair() - Method in class de.sprax2013.betterchairs.events.PlayerLeaveChairEvent
- getChair(Block) - Method in class de.sprax2013.betterchairs.ChairManager
- getChair(Entity) - Method in class de.sprax2013.betterchairs.ChairManager
- getChair(Player) - Method in class de.sprax2013.betterchairs.ChairManager
- getChairEntity() - Method in class de.sprax2013.betterchairs.Chair
- getConfig() - Static method in class de.sprax2013.betterchairs.Messages
- getConfig() - Static method in class de.sprax2013.betterchairs.Settings
- getHandlerList() - Static method in class de.sprax2013.betterchairs.events.PlayerEnterChairEvent
- getHandlerList() - Static method in class de.sprax2013.betterchairs.events.PlayerLeaveChairEvent
- getHandlers() - Method in class de.sprax2013.betterchairs.events.PlayerEnterChairEvent
- getHandlers() - Method in class de.sprax2013.betterchairs.events.PlayerLeaveChairEvent
- getInstance() - Static method in class de.sprax2013.betterchairs.ChairManager
-
May be null if BetterChairs is not enabled
- getListener() - Method in class de.sprax2013.betterchairs.ChairNMS
- getLogger() - Static method in class de.sprax2013.betterchairs.ChairManager
-
Returns BetterChair's logger or the global one, when
ChairManager.getPlugin()
isnull
. - getOriginPlayerLocation() - Method in class de.sprax2013.betterchairs.Chair
- getPlayer() - Method in class de.sprax2013.betterchairs.Chair
- getPlayer() - Method in class de.sprax2013.betterchairs.events.PlayerEnterChairEvent
- getPlayer() - Method in class de.sprax2013.betterchairs.events.PlayerLeaveChairEvent
- getPlayerLeavingLocation() - Method in class de.sprax2013.betterchairs.Chair
- getPlugin() - Static method in class de.sprax2013.betterchairs.ChairManager
-
May be null if BetterChairs is not enabled
- getPrefix() - Static method in class de.sprax2013.betterchairs.Messages
- getRegenerationAmplifier(Player) - Static method in class de.sprax2013.betterchairs.ChairNMS
- getSitOffset(Block, boolean, ChairNMS) - Static method in class de.sprax2013.betterchairs.ChairUtils
- getString(ConfigEntry) - Static method in class de.sprax2013.betterchairs.Messages
- getType() - Method in class de.sprax2013.betterchairs.Chair
-
This method checks if it is a stair or slab block.
H
- handlers - Static variable in class de.sprax2013.betterchairs.events.PlayerEnterChairEvent
- handlers - Static variable in class de.sprax2013.betterchairs.events.PlayerLeaveChairEvent
- hasChairsDisabled(UUID) - Method in class de.sprax2013.betterchairs.ChairManager
- hasChairsDisabled(OfflinePlayer) - Method in class de.sprax2013.betterchairs.ChairManager
- hasEmptyMainHand(Player) - Method in class de.sprax2013.betterchairs.ChairNMS
- HEADER - Static variable in class de.sprax2013.betterchairs.Settings
I
- IGNORES_INTERACT_PREVENTION - Static variable in class de.sprax2013.betterchairs.Settings
- instance - Static variable in class de.sprax2013.betterchairs.ChairManager
- isCancelled() - Method in class de.sprax2013.betterchairs.events.PlayerEnterChairEvent
- isChair(Entity) - Method in class de.sprax2013.betterchairs.ChairManager
-
This does not yet guarantee that
ChairManager.getChair(Entity)
is notnull
This may return true for Entities not yet spawned and thus not yet aChair
that is ready - isChair(Entity) - Method in class de.sprax2013.betterchairs.ChairNMS
-
Checks if an Entity is or will be used as
Chair
with NMS.
This method should be used to identify aChair
before it has been spawned into the world.
This can for example be used to un-cancel anEntitySpawnEvent
- isOccupied(Block) - Method in class de.sprax2013.betterchairs.ChairManager
- isSlab(Block) - Method in class de.sprax2013.betterchairs.ChairNMS
- isSlabTop(Block) - Method in class de.sprax2013.betterchairs.ChairNMS
- isStair() - Method in class de.sprax2013.betterchairs.Chair
-
Deprecated.Since v1.1.0 Chairs may be any block and not just stairs and slabs
- isStair(Block) - Method in class de.sprax2013.betterchairs.ChairNMS
- isStairUpsideDown(Block) - Method in class de.sprax2013.betterchairs.ChairNMS
K
- killChairEntity(Entity) - Method in class de.sprax2013.betterchairs.ChairNMS
L
- LEAVING_CHAIR_KEEP_HEAD_ROTATION - Static variable in class de.sprax2013.betterchairs.Settings
- LEAVING_CHAIR_TELEPORT_TO_OLD_LOCATION - Static variable in class de.sprax2013.betterchairs.Settings
M
- markAsRemoved() - Method in interface de.sprax2013.betterchairs.CustomChairEntity
- MATERIAL_FILTER_ALLOW_ALL_TYPES - Static variable in class de.sprax2013.betterchairs.Settings
- MATERIAL_FILTER_AS_BLACKLIST - Static variable in class de.sprax2013.betterchairs.Settings
- MATERIAL_FILTER_ENABLED - Static variable in class de.sprax2013.betterchairs.Settings
- MATERIAL_FILTER_NAMES - Static variable in class de.sprax2013.betterchairs.Settings
- Messages - Class in de.sprax2013.betterchairs
- MSG_ALREADY_OCCUPIED - Static variable in class de.sprax2013.betterchairs.Settings
- MSG_NEEDS_SIGNS - Static variable in class de.sprax2013.betterchairs.Settings
- MSG_NOW_SITTING - Static variable in class de.sprax2013.betterchairs.Settings
N
- NEEDS_EMPTY_HANDS - Static variable in class de.sprax2013.betterchairs.Settings
- NEEDS_SIGNS - Static variable in class de.sprax2013.betterchairs.Settings
- NO_PERMISSION - Static variable in class de.sprax2013.betterchairs.Messages
O
- onQuit(UUID) - Method in class de.sprax2013.betterchairs.ChairManager
P
- player - Variable in class de.sprax2013.betterchairs.Chair
- PlayerEnterChairEvent - Class in de.sprax2013.betterchairs.events
- PlayerEnterChairEvent(Player, Chair) - Constructor for class de.sprax2013.betterchairs.events.PlayerEnterChairEvent
- PlayerLeaveChairEvent - Class in de.sprax2013.betterchairs.events
- PlayerLeaveChairEvent(Player, Chair) - Constructor for class de.sprax2013.betterchairs.events.PlayerLeaveChairEvent
- plugin - Static variable in class de.sprax2013.betterchairs.ChairManager
R
- REGENERATION_AMPLIFIER - Static variable in class de.sprax2013.betterchairs.Settings
- REGENERATION_CHECK_PERMISSION - Static variable in class de.sprax2013.betterchairs.Settings
- REGENERATION_EFFECT_DURATION - Static variable in class de.sprax2013.betterchairs.ChairNMS
- REGENERATION_ENABLED - Static variable in class de.sprax2013.betterchairs.Settings
- reload() - Static method in class de.sprax2013.betterchairs.Messages
- reload() - Static method in class de.sprax2013.betterchairs.Settings
- REMEMBER_IF_PLAYER_DISABLED_CHAIRS - Static variable in class de.sprax2013.betterchairs.Settings
- reset() - Static method in class de.sprax2013.betterchairs.Messages
- reset() - Static method in class de.sprax2013.betterchairs.Settings
S
- setCancelled(boolean) - Method in class de.sprax2013.betterchairs.events.PlayerEnterChairEvent
- setChairsDisabled(UUID, boolean) - Method in class de.sprax2013.betterchairs.ChairManager
- setChairsDisabled(Player, boolean) - Method in class de.sprax2013.betterchairs.ChairManager
- Settings - Class in de.sprax2013.betterchairs
- SIT_ON_ARROWS - Static variable in class de.sprax2013.betterchairs.Settings
- SLAB - Enum constant in enum de.sprax2013.betterchairs.ChairType
- spawnChairEntity(Location, int, boolean) - Method in class de.sprax2013.betterchairs.ChairNMS
-
Spawns an Entity that is/has: Invisible Invincible NoGravity Silent DisabledSlots (if it is an ArmorStand) NoBounce (if it is an Arrow) The entity may fulfill the above with the help of
ChairNMS.getListener()
andChairUtils.applyChairProtections(Entity)
- STAIR - Enum constant in enum de.sprax2013.betterchairs.ChairType
T
- TOGGLE_DISABLED - Static variable in class de.sprax2013.betterchairs.Messages
- TOGGLE_ENABLED - Static variable in class de.sprax2013.betterchairs.Messages
- TOGGLE_STATUS_DISABLED - Static variable in class de.sprax2013.betterchairs.Messages
- TOGGLE_STATUS_ENABLED - Static variable in class de.sprax2013.betterchairs.Messages
U
- UPDATER_ENABLED - Static variable in class de.sprax2013.betterchairs.Settings
- UPDATER_NOTIFY_ON_JOIN - Static variable in class de.sprax2013.betterchairs.Settings
- USE_ALREADY_OCCUPIED - Static variable in class de.sprax2013.betterchairs.Messages
- USE_NEEDS_SIGNS - Static variable in class de.sprax2013.betterchairs.Messages
- USE_NOW_SITTING - Static variable in class de.sprax2013.betterchairs.Messages
- USE_SLABS - Static variable in class de.sprax2013.betterchairs.Settings
- USE_STAIRS - Static variable in class de.sprax2013.betterchairs.Settings
V
- valueOf(String) - Static method in enum de.sprax2013.betterchairs.ChairType
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum de.sprax2013.betterchairs.ChairType
-
Returns an array containing the constants of this enum type, in the order they are declared.
W
- WORLD_FILTER_AS_BLACKLIST - Static variable in class de.sprax2013.betterchairs.Settings
- WORLD_FILTER_ENABLED - Static variable in class de.sprax2013.betterchairs.Settings
- WORLD_FILTER_NAMES - Static variable in class de.sprax2013.betterchairs.Settings
All Classes and Interfaces|All Packages|Constant Field Values