Class GeyserCustomItemData.Builder

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

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

    • name

      protected String name
    • customItemOptions

      protected org.geysermc.geyser.api.item.custom.CustomItemOptions customItemOptions
    • displayName

      protected String displayName
    • icon

      protected String icon
    • allowOffhand

      protected boolean allowOffhand
    • displayHandheld

      protected boolean displayHandheld
    • textureSize

      protected int textureSize
    • renderOffsets

      protected org.geysermc.geyser.api.item.custom.CustomRenderOffsets renderOffsets
    • tags

      protected Set<String> tags
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • name

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

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

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

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

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

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

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

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

      public GeyserCustomItemData.Builder tags(@Nullable Set<String> tags)
      Specified by:
      tags in interface org.geysermc.geyser.api.item.custom.CustomItemData.Builder
    • build

      public org.geysermc.geyser.api.item.custom.CustomItemData build()
      Specified by:
      build in interface org.geysermc.geyser.api.item.custom.CustomItemData.Builder