Class FreezeTool
java.lang.Object
fr.luc.crcore.features.moderation.tool.FreezeTool
- All Implemented Interfaces:
ModeratorTool
Freeze — slot 2. Click droit sur un joueur → toggle freeze.-
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).voidonInteractEntity(org.bukkit.entity.Player moderator, org.bukkit.entity.Entity target) Appelé sur clic droit sur une entité (typiquement un joueur).Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ModeratorTool
onLeftClick, onRightClick
-
Field Details
-
KEY
- See Also:
-
SLOT
public static final int SLOT- See Also:
-
-
Constructor Details
-
FreezeTool
-
-
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
-
onInteractEntity
public void onInteractEntity(org.bukkit.entity.Player moderator, org.bukkit.entity.Entity target) Description copied from interface:ModeratorToolAppelé sur clic droit sur une entité (typiquement un joueur).- Specified by:
onInteractEntityin interfaceModeratorTool
-