Class GeyserCustomItemData.CustomItemDataBuilder

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

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

    Fields
    Modifier and Type
    Field
    Description
    protected boolean
     
    protected org.geysermc.geyser.api.item.custom.CustomItemOptions
     
    protected boolean
     
    protected String
     
    protected String
     
    protected String
     
    protected org.geysermc.geyser.api.item.custom.CustomRenderOffsets
     
    protected Set<String>
     
    protected int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.geysermc.geyser.api.item.custom.CustomItemData.Builder
    allowOffhand​(boolean allowOffhand)
     
    org.geysermc.geyser.api.item.custom.CustomItemData
     
    org.geysermc.geyser.api.item.custom.CustomItemData.Builder
    customItemOptions​(@NonNull org.geysermc.geyser.api.item.custom.CustomItemOptions customItemOptions)
     
    org.geysermc.geyser.api.item.custom.CustomItemData.Builder
    displayHandheld​(boolean displayHandheld)
     
    org.geysermc.geyser.api.item.custom.CustomItemData.Builder
    displayName​(@NonNull String displayName)
     
    org.geysermc.geyser.api.item.custom.CustomItemData.Builder
    icon​(@NonNull String icon)
     
    org.geysermc.geyser.api.item.custom.CustomItemData.Builder
    name​(@NonNull String name)
     
    org.geysermc.geyser.api.item.custom.CustomItemData.Builder
    renderOffsets​(org.geysermc.geyser.api.item.custom.CustomRenderOffsets renderOffsets)
     
    org.geysermc.geyser.api.item.custom.CustomItemData.Builder
    tags​(@Nullable Set<String> tags)
     
    org.geysermc.geyser.api.item.custom.CustomItemData.Builder
    textureSize​(int textureSize)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

    • CustomItemDataBuilder

      public CustomItemDataBuilder()
  • Method Details

    • name

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

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

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

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

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

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

      public org.geysermc.geyser.api.item.custom.CustomItemData.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 org.geysermc.geyser.api.item.custom.CustomItemData.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