Class GeyserMappingItem

java.lang.Object
org.geysermc.geyser.registry.type.GeyserMappingItem

public class GeyserMappingItem extends Object
Represents Geyser's own serialized item information before being processed per-version
  • Constructor Details

    • GeyserMappingItem

      public GeyserMappingItem()
    • GeyserMappingItem

      public GeyserMappingItem(String bedrockIdentifier, int bedrockData, Integer firstBlockRuntimeId, Integer lastBlockRuntimeId, String toolType, String toolTier, String armorType, int protectionValue, boolean edible, boolean entityPlacer)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getBedrockIdentifier

      public String getBedrockIdentifier()
    • getBedrockData

      public int getBedrockData()
    • getFirstBlockRuntimeId

      public Integer getFirstBlockRuntimeId()
    • getLastBlockRuntimeId

      public Integer getLastBlockRuntimeId()
    • getToolType

      public String getToolType()
    • getToolTier

      public String getToolTier()
    • getArmorType

      public String getArmorType()
    • getProtectionValue

      public int getProtectionValue()
    • isEdible

      public boolean isEdible()
    • isEntityPlacer

      public boolean isEntityPlacer()
    • withBedrockIdentifier

      public GeyserMappingItem withBedrockIdentifier(String bedrockIdentifier)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withBedrockData

      public GeyserMappingItem withBedrockData(int bedrockData)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withFirstBlockRuntimeId

      public GeyserMappingItem withFirstBlockRuntimeId(Integer firstBlockRuntimeId)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withLastBlockRuntimeId

      public GeyserMappingItem withLastBlockRuntimeId(Integer lastBlockRuntimeId)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withToolType

      public GeyserMappingItem withToolType(String toolType)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withToolTier

      public GeyserMappingItem withToolTier(String toolTier)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withArmorType

      public GeyserMappingItem withArmorType(String armorType)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withProtectionValue

      public GeyserMappingItem withProtectionValue(int protectionValue)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withEdible

      public GeyserMappingItem withEdible(boolean edible)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withEntityPlacer

      public GeyserMappingItem withEntityPlacer(boolean entityPlacer)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).