Class GeyserChargeableImpl.Builder

java.lang.Object
org.geysermc.geyser.item.custom.impl.GeyserChargeableImpl.Builder
All Implemented Interfaces:
org.geysermc.geyser.api.item.custom.v2.component.geyser.GeyserChargeable.Builder, org.geysermc.geyser.api.util.GenericBuilder<org.geysermc.geyser.api.item.custom.v2.component.geyser.GeyserChargeable>
Enclosing class:
GeyserChargeableImpl

public static class GeyserChargeableImpl.Builder extends Object implements org.geysermc.geyser.api.item.custom.v2.component.geyser.GeyserChargeable.Builder
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.geysermc.geyser.api.item.custom.v2.component.geyser.GeyserChargeable.Builder
    ammunition(@NonNull org.geysermc.geyser.api.util.Identifier ammunition)
     
    org.geysermc.geyser.api.item.custom.v2.component.geyser.GeyserChargeable
     
    org.geysermc.geyser.api.item.custom.v2.component.geyser.GeyserChargeable.Builder
    chargeOnDraw(boolean chargeOnDraw)
     
    org.geysermc.geyser.api.item.custom.v2.component.geyser.GeyserChargeable.Builder
    maxDrawDuration(@org.checkerframework.checker.index.qual.NonNegative float maxDrawDuration)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • maxDrawDuration

      public org.geysermc.geyser.api.item.custom.v2.component.geyser.GeyserChargeable.Builder maxDrawDuration(@org.checkerframework.checker.index.qual.NonNegative float maxDrawDuration)
      Specified by:
      maxDrawDuration in interface org.geysermc.geyser.api.item.custom.v2.component.geyser.GeyserChargeable.Builder
    • chargeOnDraw

      public org.geysermc.geyser.api.item.custom.v2.component.geyser.GeyserChargeable.Builder chargeOnDraw(boolean chargeOnDraw)
      Specified by:
      chargeOnDraw in interface org.geysermc.geyser.api.item.custom.v2.component.geyser.GeyserChargeable.Builder
    • ammunition

      public org.geysermc.geyser.api.item.custom.v2.component.geyser.GeyserChargeable.Builder ammunition(@NonNull org.geysermc.geyser.api.util.Identifier ammunition)
      Specified by:
      ammunition in interface org.geysermc.geyser.api.item.custom.v2.component.geyser.GeyserChargeable.Builder
    • build

      public org.geysermc.geyser.api.item.custom.v2.component.geyser.GeyserChargeable build()
      Specified by:
      build in interface org.geysermc.geyser.api.util.GenericBuilder<org.geysermc.geyser.api.item.custom.v2.component.geyser.GeyserChargeable>
      Specified by:
      build in interface org.geysermc.geyser.api.item.custom.v2.component.geyser.GeyserChargeable.Builder