Class VanishToggleTool
java.lang.Object
fr.luc.crcore.features.moderation.tool.VanishToggleTool
- All Implemented Interfaces:
ModeratorTool
Vanish toggle — slot 7. Click → toggle vanish on/off (le
modérateur reste en mod mode, mais visible/invisible).-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.inventory.ItemStackConstruit l'icône à afficher (nouvelle instance à chaque appel).getKey()Clé unique de l'outil (ex.intgetSlot()Slot fixe sur la hotbar (0..8).voidonLeftClick(org.bukkit.entity.Player moderator) Appelé sur clic gauche en l'air ou sur un bloc.voidonRightClick(org.bukkit.entity.Player moderator) Appelé sur clic droit en l'air ou sur un bloc.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ModeratorTool
onInteractEntity
-
Field Details
-
KEY
- See Also:
-
SLOT
public static final int SLOT- See Also:
-
-
Constructor Details
-
VanishToggleTool
-
-
Method Details
-
getKey
Description copied from interface:ModeratorToolClé unique de l'outil (ex."exit","vanish","freeze").- Specified by:
getKeyin interfaceModeratorTool
-
getSlot
public int getSlot()Description copied from interface:ModeratorToolSlot fixe sur la hotbar (0..8). Les conflits sont gérés parModeratorToolRegistry.- Specified by:
getSlotin interfaceModeratorTool
-
buildIcon
public org.bukkit.inventory.ItemStack buildIcon()Description copied from interface:ModeratorToolConstruit l'icône à afficher (nouvelle instance à chaque appel).- Specified by:
buildIconin interfaceModeratorTool
-
onLeftClick
public void onLeftClick(org.bukkit.entity.Player moderator) Description copied from interface:ModeratorToolAppelé sur clic gauche en l'air ou sur un bloc.- Specified by:
onLeftClickin interfaceModeratorTool
-
onRightClick
public void onRightClick(org.bukkit.entity.Player moderator) Description copied from interface:ModeratorToolAppelé sur clic droit en l'air ou sur un bloc.- Specified by:
onRightClickin interfaceModeratorTool
-