Class GeyserNonVanillaCustomItemData.Builder

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

public static class GeyserNonVanillaCustomItemData.Builder extends GeyserCustomItemData.Builder implements org.geysermc.geyser.api.item.custom.NonVanillaCustomItemData.Builder
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • name

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

      public GeyserNonVanillaCustomItemData.Builder customItemOptions(@NonNull org.geysermc.geyser.api.item.custom.CustomItemOptions customItemOptions)
      Specified by:
      customItemOptions in interface org.geysermc.geyser.api.item.custom.CustomItemData.Builder
      Specified by:
      customItemOptions in interface org.geysermc.geyser.api.item.custom.NonVanillaCustomItemData.Builder
      Overrides:
      customItemOptions in class GeyserCustomItemData.Builder
    • allowOffhand

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

      public GeyserNonVanillaCustomItemData.Builder displayHandheld(boolean displayHandheld)
      Specified by:
      displayHandheld in interface org.geysermc.geyser.api.item.custom.CustomItemData.Builder
      Specified by:
      displayHandheld in interface org.geysermc.geyser.api.item.custom.NonVanillaCustomItemData.Builder
      Overrides:
      displayHandheld in class GeyserCustomItemData.Builder
    • displayName

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

      public GeyserNonVanillaCustomItemData.Builder icon(@NonNull String icon)
      Specified by:
      icon in interface org.geysermc.geyser.api.item.custom.CustomItemData.Builder
      Specified by:
      icon in interface org.geysermc.geyser.api.item.custom.NonVanillaCustomItemData.Builder
      Overrides:
      icon in class GeyserCustomItemData.Builder
    • textureSize

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

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

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

      public GeyserNonVanillaCustomItemData.Builder identifier(@NonNull String identifier)
      Specified by:
      identifier in interface org.geysermc.geyser.api.item.custom.NonVanillaCustomItemData.Builder
    • javaId

      public GeyserNonVanillaCustomItemData.Builder javaId(int javaId)
      Specified by:
      javaId in interface org.geysermc.geyser.api.item.custom.NonVanillaCustomItemData.Builder
    • stackSize

      public GeyserNonVanillaCustomItemData.Builder stackSize(int stackSize)
      Specified by:
      stackSize in interface org.geysermc.geyser.api.item.custom.NonVanillaCustomItemData.Builder
    • maxDamage

      public GeyserNonVanillaCustomItemData.Builder maxDamage(int maxDamage)
      Specified by:
      maxDamage in interface org.geysermc.geyser.api.item.custom.NonVanillaCustomItemData.Builder
    • attackDamage

      public org.geysermc.geyser.api.item.custom.NonVanillaCustomItemData.Builder attackDamage(int attackDamage)
      Specified by:
      attackDamage in interface org.geysermc.geyser.api.item.custom.NonVanillaCustomItemData.Builder
    • toolType

      public GeyserNonVanillaCustomItemData.Builder toolType(@Nullable String toolType)
      Specified by:
      toolType in interface org.geysermc.geyser.api.item.custom.NonVanillaCustomItemData.Builder
    • toolTier

      public GeyserNonVanillaCustomItemData.Builder toolTier(@Nullable String toolTier)
      Specified by:
      toolTier in interface org.geysermc.geyser.api.item.custom.NonVanillaCustomItemData.Builder
    • armorType

      public GeyserNonVanillaCustomItemData.Builder armorType(@Nullable String armorType)
      Specified by:
      armorType in interface org.geysermc.geyser.api.item.custom.NonVanillaCustomItemData.Builder
    • protectionValue

      public GeyserNonVanillaCustomItemData.Builder protectionValue(int protectionValue)
      Specified by:
      protectionValue in interface org.geysermc.geyser.api.item.custom.NonVanillaCustomItemData.Builder
    • translationString

      public GeyserNonVanillaCustomItemData.Builder translationString(@Nullable String translationString)
      Specified by:
      translationString in interface org.geysermc.geyser.api.item.custom.NonVanillaCustomItemData.Builder
    • repairMaterials

      public GeyserNonVanillaCustomItemData.Builder repairMaterials(@Nullable Set<String> repairMaterials)
      Specified by:
      repairMaterials in interface org.geysermc.geyser.api.item.custom.NonVanillaCustomItemData.Builder
    • creativeCategory

      public GeyserNonVanillaCustomItemData.Builder creativeCategory(int creativeCategory)
      Specified by:
      creativeCategory in interface org.geysermc.geyser.api.item.custom.CustomItemData.Builder
      Specified by:
      creativeCategory in interface org.geysermc.geyser.api.item.custom.NonVanillaCustomItemData.Builder
      Overrides:
      creativeCategory in class GeyserCustomItemData.Builder
    • creativeGroup

      public GeyserNonVanillaCustomItemData.Builder creativeGroup(@Nullable String creativeGroup)
      Specified by:
      creativeGroup in interface org.geysermc.geyser.api.item.custom.CustomItemData.Builder
      Specified by:
      creativeGroup in interface org.geysermc.geyser.api.item.custom.NonVanillaCustomItemData.Builder
      Overrides:
      creativeGroup in class GeyserCustomItemData.Builder
    • hat

      public GeyserNonVanillaCustomItemData.Builder hat(boolean isHat)
      Specified by:
      hat in interface org.geysermc.geyser.api.item.custom.NonVanillaCustomItemData.Builder
    • foil

      public GeyserNonVanillaCustomItemData.Builder foil(boolean isFoil)
      Specified by:
      foil in interface org.geysermc.geyser.api.item.custom.NonVanillaCustomItemData.Builder
    • edible

      public GeyserNonVanillaCustomItemData.Builder edible(boolean isEdible)
      Specified by:
      edible in interface org.geysermc.geyser.api.item.custom.NonVanillaCustomItemData.Builder
    • canAlwaysEat

      public GeyserNonVanillaCustomItemData.Builder canAlwaysEat(boolean canAlwaysEat)
      Specified by:
      canAlwaysEat in interface org.geysermc.geyser.api.item.custom.NonVanillaCustomItemData.Builder
    • chargeable

      public GeyserNonVanillaCustomItemData.Builder chargeable(boolean isChargeable)
      Specified by:
      chargeable in interface org.geysermc.geyser.api.item.custom.NonVanillaCustomItemData.Builder
    • block

      Specified by:
      block in interface org.geysermc.geyser.api.item.custom.NonVanillaCustomItemData.Builder
    • build

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