Class GeyserCustomItemData

java.lang.Object
org.geysermc.geyser.item.GeyserCustomItemData
All Implemented Interfaces:
org.geysermc.geyser.api.item.custom.CustomItemData
Direct Known Subclasses:
GeyserNonVanillaCustomItemData

public class GeyserCustomItemData extends Object implements org.geysermc.geyser.api.item.custom.CustomItemData
  • Constructor Details

    • GeyserCustomItemData

      public GeyserCustomItemData(String name, org.geysermc.geyser.api.item.custom.CustomItemOptions customItemOptions, String displayName, String icon, boolean allowOffhand, boolean displayHandheld, OptionalInt creativeCategory, String creativeGroup, int textureSize, org.geysermc.geyser.api.item.custom.CustomRenderOffsets renderOffsets, Set<String> tags)
  • Method Details

    • name

      public @NonNull String name()
      Specified by:
      name in interface org.geysermc.geyser.api.item.custom.CustomItemData
    • customItemOptions

      public org.geysermc.geyser.api.item.custom.CustomItemOptions customItemOptions()
      Specified by:
      customItemOptions in interface org.geysermc.geyser.api.item.custom.CustomItemData
    • displayName

      public @NonNull String displayName()
      Specified by:
      displayName in interface org.geysermc.geyser.api.item.custom.CustomItemData
    • icon

      public @NonNull String icon()
      Specified by:
      icon in interface org.geysermc.geyser.api.item.custom.CustomItemData
    • allowOffhand

      public boolean allowOffhand()
      Specified by:
      allowOffhand in interface org.geysermc.geyser.api.item.custom.CustomItemData
    • displayHandheld

      public boolean displayHandheld()
      Specified by:
      displayHandheld in interface org.geysermc.geyser.api.item.custom.CustomItemData
    • creativeCategory

      public @NonNull OptionalInt creativeCategory()
      Specified by:
      creativeCategory in interface org.geysermc.geyser.api.item.custom.CustomItemData
    • creativeGroup

      public @Nullable String creativeGroup()
      Specified by:
      creativeGroup in interface org.geysermc.geyser.api.item.custom.CustomItemData
    • textureSize

      public int textureSize()
      Specified by:
      textureSize in interface org.geysermc.geyser.api.item.custom.CustomItemData
    • renderOffsets

      public org.geysermc.geyser.api.item.custom.CustomRenderOffsets renderOffsets()
      Specified by:
      renderOffsets in interface org.geysermc.geyser.api.item.custom.CustomItemData
    • tags

      public @NonNull Set<String> tags()
      Specified by:
      tags in interface org.geysermc.geyser.api.item.custom.CustomItemData
    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object