Class ConsumableComponent.Builder

java.lang.Object
net.minecraft.component.type.ConsumableComponent.Builder
Enclosing class:
ConsumableComponent

public static class ConsumableComponent.Builder extends Object
Mappings:
Namespace Name
named net/minecraft/component/type/ConsumableComponent$Builder
intermediary net/minecraft/class_10124$class_10125
official czu$a
  • Field Details

    • consumeSeconds

      private float consumeSeconds
      Mappings:
      Namespace Name Mixin selector
      named consumeSeconds Lnet/minecraft/component/type/ConsumableComponent$Builder;consumeSeconds:F
      intermediary field_53774 Lnet/minecraft/class_10124$class_10125;field_53774:F
      official a Lczu$a;a:F
    • useAction

      private UseAction useAction
      Mappings:
      Namespace Name Mixin selector
      named useAction Lnet/minecraft/component/type/ConsumableComponent$Builder;useAction:Lnet/minecraft/item/consume/UseAction;
      intermediary field_53775 Lnet/minecraft/class_10124$class_10125;field_53775:Lnet/minecraft/class_1839;
      official b Lczu$a;b:Lcxq;
    • sound

      private RegistryEntry<SoundEvent> sound
      Mappings:
      Namespace Name Mixin selector
      named sound Lnet/minecraft/component/type/ConsumableComponent$Builder;sound:Lnet/minecraft/registry/entry/RegistryEntry;
      intermediary field_53776 Lnet/minecraft/class_10124$class_10125;field_53776:Lnet/minecraft/class_6880;
      official c Lczu$a;c:Ljq;
    • consumeParticles

      private boolean consumeParticles
      Mappings:
      Namespace Name Mixin selector
      named consumeParticles Lnet/minecraft/component/type/ConsumableComponent$Builder;consumeParticles:Z
      intermediary field_53777 Lnet/minecraft/class_10124$class_10125;field_53777:Z
      official d Lczu$a;d:Z
    • consumeEffects

      private final List<ConsumeEffect> consumeEffects
      Mappings:
      Namespace Name Mixin selector
      named consumeEffects Lnet/minecraft/component/type/ConsumableComponent$Builder;consumeEffects:Ljava/util/List;
      intermediary field_53778 Lnet/minecraft/class_10124$class_10125;field_53778:Ljava/util/List;
      official e Lczu$a;e:Ljava/util/List;
  • Constructor Details

    • Builder

      Builder()
  • Method Details

    • consumeSeconds

      public ConsumableComponent.Builder consumeSeconds(float consumeSeconds)
      Mappings:
      Namespace Name Mixin selector
      named consumeSeconds Lnet/minecraft/component/type/ConsumableComponent$Builder;consumeSeconds(F)Lnet/minecraft/component/type/ConsumableComponent$Builder;
      intermediary method_62852 Lnet/minecraft/class_10124$class_10125;method_62852(F)Lnet/minecraft/class_10124$class_10125;
      official a Lczu$a;a(F)Lczu$a;
    • useAction

      public ConsumableComponent.Builder useAction(UseAction useAction)
      Mappings:
      Namespace Name Mixin selector
      named useAction Lnet/minecraft/component/type/ConsumableComponent$Builder;useAction(Lnet/minecraft/item/consume/UseAction;)Lnet/minecraft/component/type/ConsumableComponent$Builder;
      intermediary method_62853 Lnet/minecraft/class_10124$class_10125;method_62853(Lnet/minecraft/class_1839;)Lnet/minecraft/class_10124$class_10125;
      official a Lczu$a;a(Lcxq;)Lczu$a;
    • sound

      Mappings:
      Namespace Name Mixin selector
      named sound Lnet/minecraft/component/type/ConsumableComponent$Builder;sound(Lnet/minecraft/registry/entry/RegistryEntry;)Lnet/minecraft/component/type/ConsumableComponent$Builder;
      intermediary method_62855 Lnet/minecraft/class_10124$class_10125;method_62855(Lnet/minecraft/class_6880;)Lnet/minecraft/class_10124$class_10125;
      official a Lczu$a;a(Ljq;)Lczu$a;
    • finishSound

      public ConsumableComponent.Builder finishSound(RegistryEntry<SoundEvent> finishSound)
      Mappings:
      Namespace Name Mixin selector
      named finishSound Lnet/minecraft/component/type/ConsumableComponent$Builder;finishSound(Lnet/minecraft/registry/entry/RegistryEntry;)Lnet/minecraft/component/type/ConsumableComponent$Builder;
      intermediary method_62857 Lnet/minecraft/class_10124$class_10125;method_62857(Lnet/minecraft/class_6880;)Lnet/minecraft/class_10124$class_10125;
      official b Lczu$a;b(Ljq;)Lczu$a;
    • consumeParticles

      public ConsumableComponent.Builder consumeParticles(boolean consumeParticles)
      Mappings:
      Namespace Name Mixin selector
      named consumeParticles Lnet/minecraft/component/type/ConsumableComponent$Builder;consumeParticles(Z)Lnet/minecraft/component/type/ConsumableComponent$Builder;
      intermediary method_62856 Lnet/minecraft/class_10124$class_10125;method_62856(Z)Lnet/minecraft/class_10124$class_10125;
      official a Lczu$a;a(Z)Lczu$a;
    • consumeEffect

      public ConsumableComponent.Builder consumeEffect(ConsumeEffect consumeEffect)
      Mappings:
      Namespace Name Mixin selector
      named consumeEffect Lnet/minecraft/component/type/ConsumableComponent$Builder;consumeEffect(Lnet/minecraft/item/consume/ConsumeEffect;)Lnet/minecraft/component/type/ConsumableComponent$Builder;
      intermediary method_62854 Lnet/minecraft/class_10124$class_10125;method_62854(Lnet/minecraft/class_10134;)Lnet/minecraft/class_10124$class_10125;
      official a Lczu$a;a(Ldba;)Lczu$a;
    • build

      public ConsumableComponent build()
      Mappings:
      Namespace Name Mixin selector
      named build Lnet/minecraft/component/type/ConsumableComponent$Builder;build()Lnet/minecraft/component/type/ConsumableComponent;
      intermediary method_62851 Lnet/minecraft/class_10124$class_10125;method_62851()Lnet/minecraft/class_10124;
      official a Lczu$a;a()Lczu;