Package net.wesjd.anvilgui
Class AnvilGUI.StateSnapshot
java.lang.Object
net.wesjd.anvilgui.AnvilGUI.StateSnapshot
- Enclosing class:
AnvilGUI
Represents a snapshot of the state of an AnvilGUI
-
Constructor Summary
ConstructorsConstructorDescriptionStateSnapshot(org.bukkit.inventory.ItemStack leftItem, org.bukkit.inventory.ItemStack rightItem, org.bukkit.inventory.ItemStack outputItem, org.bukkit.entity.Player player) The event parameter constructor -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.inventory.ItemStackIt returns the item in the left combine slot of the guiorg.bukkit.inventory.ItemStackIt returns the output item that would have been the result by combining the left and right oneorg.bukkit.entity.PlayerIt returns the player that clicked onto the output slotorg.bukkit.inventory.ItemStackIt returns the item in the right combine slot of the guigetText()It returns the text the player typed into the rename field
-
Constructor Details
-
StateSnapshot
public StateSnapshot(org.bukkit.inventory.ItemStack leftItem, org.bukkit.inventory.ItemStack rightItem, org.bukkit.inventory.ItemStack outputItem, org.bukkit.entity.Player player) The event parameter constructor- Parameters:
leftItem- The left item in the combine slot of the anvilGUIrightItem- The right item in the combine slot of the anvilGUIoutputItem- The item that would have been outputted, when the items would have been combinedplayer- The player that clicked the output slot
-
-
Method Details
-
getLeftItem
public org.bukkit.inventory.ItemStack getLeftItem()It returns the item in the left combine slot of the gui- Returns:
- The leftItem
-
getRightItem
public org.bukkit.inventory.ItemStack getRightItem()It returns the item in the right combine slot of the gui- Returns:
- The rightItem
-
getOutputItem
public org.bukkit.inventory.ItemStack getOutputItem()It returns the output item that would have been the result by combining the left and right one- Returns:
- The outputItem
-
getPlayer
public org.bukkit.entity.Player getPlayer()It returns the player that clicked onto the output slot- Returns:
- The player
-
getText
It returns the text the player typed into the rename field- Returns:
- The text of the rename field
-