Class EquippableComponent.Builder

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

public static class EquippableComponent.Builder extends Object
Mappings:
Namespace Name
named net/minecraft/component/type/EquippableComponent$Builder
intermediary net/minecraft/class_10192$class_10217
official dft$a
  • Field Details

    • slot

      private final EquipmentSlot slot
      Mappings:
      Namespace Name Mixin selector
      named slot Lnet/minecraft/component/type/EquippableComponent$Builder;slot:Lnet/minecraft/entity/EquipmentSlot;
      intermediary field_54234 Lnet/minecraft/class_10192$class_10217;field_54234:Lnet/minecraft/class_1304;
      official a Ldft$a;a:Lbvr;
    • equipSound

      private RegistryEntry<SoundEvent> equipSound
      Mappings:
      Namespace Name Mixin selector
      named equipSound Lnet/minecraft/component/type/EquippableComponent$Builder;equipSound:Lnet/minecraft/registry/entry/RegistryEntry;
      intermediary field_54235 Lnet/minecraft/class_10192$class_10217;field_54235:Lnet/minecraft/class_6880;
      official b Ldft$a;b:Ljq;
    • model

      private Optional<Identifier> model
      Mappings:
      Namespace Name Mixin selector
      named model Lnet/minecraft/component/type/EquippableComponent$Builder;model:Ljava/util/Optional;
      intermediary field_54236 Lnet/minecraft/class_10192$class_10217;field_54236:Ljava/util/Optional;
      official c Ldft$a;c:Ljava/util/Optional;
    • cameraOverlay

      private Optional<Identifier> cameraOverlay
      Mappings:
      Namespace Name Mixin selector
      named cameraOverlay Lnet/minecraft/component/type/EquippableComponent$Builder;cameraOverlay:Ljava/util/Optional;
      intermediary field_54908 Lnet/minecraft/class_10192$class_10217;field_54908:Ljava/util/Optional;
      official d Ldft$a;d:Ljava/util/Optional;
    • allowedEntities

      private Optional<RegistryEntryList<EntityType<?>>> allowedEntities
      Mappings:
      Namespace Name Mixin selector
      named allowedEntities Lnet/minecraft/component/type/EquippableComponent$Builder;allowedEntities:Ljava/util/Optional;
      intermediary field_54237 Lnet/minecraft/class_10192$class_10217;field_54237:Ljava/util/Optional;
      official e Ldft$a;e:Ljava/util/Optional;
    • dispensable

      private boolean dispensable
      Mappings:
      Namespace Name Mixin selector
      named dispensable Lnet/minecraft/component/type/EquippableComponent$Builder;dispensable:Z
      intermediary field_54238 Lnet/minecraft/class_10192$class_10217;field_54238:Z
      official f Ldft$a;f:Z
    • swappable

      private boolean swappable
      Mappings:
      Namespace Name Mixin selector
      named swappable Lnet/minecraft/component/type/EquippableComponent$Builder;swappable:Z
      intermediary field_54239 Lnet/minecraft/class_10192$class_10217;field_54239:Z
      official g Ldft$a;g:Z
    • damageOnHurt

      private boolean damageOnHurt
      Mappings:
      Namespace Name Mixin selector
      named damageOnHurt Lnet/minecraft/component/type/EquippableComponent$Builder;damageOnHurt:Z
      intermediary field_54240 Lnet/minecraft/class_10192$class_10217;field_54240:Z
      official h Ldft$a;h:Z
  • Constructor Details

    • Builder

      Builder(EquipmentSlot slot)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/component/type/EquippableComponent$Builder;<init>(Lnet/minecraft/entity/EquipmentSlot;)V
      intermediary <init> Lnet/minecraft/class_10192$class_10217;<init>(Lnet/minecraft/class_1304;)V
      official <init> Ldft$a;<init>(Lbvr;)V
  • Method Details

    • equipSound

      public EquippableComponent.Builder equipSound(RegistryEntry<SoundEvent> equipSound)
      Mappings:
      Namespace Name Mixin selector
      named equipSound Lnet/minecraft/component/type/EquippableComponent$Builder;equipSound(Lnet/minecraft/registry/entry/RegistryEntry;)Lnet/minecraft/component/type/EquippableComponent$Builder;
      intermediary method_64205 Lnet/minecraft/class_10192$class_10217;method_64205(Lnet/minecraft/class_6880;)Lnet/minecraft/class_10192$class_10217;
      official a Ldft$a;a(Ljq;)Ldft$a;
    • model

      Mappings:
      Namespace Name Mixin selector
      named model Lnet/minecraft/component/type/EquippableComponent$Builder;model(Lnet/minecraft/util/Identifier;)Lnet/minecraft/component/type/EquippableComponent$Builder;
      intermediary method_64204 Lnet/minecraft/class_10192$class_10217;method_64204(Lnet/minecraft/class_2960;)Lnet/minecraft/class_10192$class_10217;
      official a Ldft$a;a(Lalz;)Ldft$a;
    • cameraOverlay

      public EquippableComponent.Builder cameraOverlay(Identifier cameraOverlay)
      Mappings:
      Namespace Name Mixin selector
      named cameraOverlay Lnet/minecraft/component/type/EquippableComponent$Builder;cameraOverlay(Lnet/minecraft/util/Identifier;)Lnet/minecraft/component/type/EquippableComponent$Builder;
      intermediary method_65009 Lnet/minecraft/class_10192$class_10217;method_65009(Lnet/minecraft/class_2960;)Lnet/minecraft/class_10192$class_10217;
      official b Ldft$a;b(Lalz;)Ldft$a;
    • allowedEntities

      public EquippableComponent.Builder allowedEntities(EntityType<?>[] allowedEntities)
      Mappings:
      Namespace Name Mixin selector
      named allowedEntities Lnet/minecraft/component/type/EquippableComponent$Builder;allowedEntities([Lnet/minecraft/entity/EntityType;)Lnet/minecraft/component/type/EquippableComponent$Builder;
      intermediary method_64208 Lnet/minecraft/class_10192$class_10217;method_64208([Lnet/minecraft/class_1299;)Lnet/minecraft/class_10192$class_10217;
      official a Ldft$a;a([Lbvq;)Ldft$a;
    • allowedEntities

      public EquippableComponent.Builder allowedEntities(RegistryEntryList<EntityType<?>> allowedEntities)
      Mappings:
      Namespace Name Mixin selector
      named allowedEntities Lnet/minecraft/component/type/EquippableComponent$Builder;allowedEntities(Lnet/minecraft/registry/entry/RegistryEntryList;)Lnet/minecraft/component/type/EquippableComponent$Builder;
      intermediary method_64206 Lnet/minecraft/class_10192$class_10217;method_64206(Lnet/minecraft/class_6885;)Lnet/minecraft/class_10192$class_10217;
      official a Ldft$a;a(Lju;)Ldft$a;
    • dispensable

      public EquippableComponent.Builder dispensable(boolean dispensable)
      Mappings:
      Namespace Name Mixin selector
      named dispensable Lnet/minecraft/component/type/EquippableComponent$Builder;dispensable(Z)Lnet/minecraft/component/type/EquippableComponent$Builder;
      intermediary method_64207 Lnet/minecraft/class_10192$class_10217;method_64207(Z)Lnet/minecraft/class_10192$class_10217;
      official a Ldft$a;a(Z)Ldft$a;
    • swappable

      public EquippableComponent.Builder swappable(boolean swappable)
      Mappings:
      Namespace Name Mixin selector
      named swappable Lnet/minecraft/component/type/EquippableComponent$Builder;swappable(Z)Lnet/minecraft/component/type/EquippableComponent$Builder;
      intermediary method_64209 Lnet/minecraft/class_10192$class_10217;method_64209(Z)Lnet/minecraft/class_10192$class_10217;
      official b Ldft$a;b(Z)Ldft$a;
    • damageOnHurt

      public EquippableComponent.Builder damageOnHurt(boolean damageOnHurt)
      Mappings:
      Namespace Name Mixin selector
      named damageOnHurt Lnet/minecraft/component/type/EquippableComponent$Builder;damageOnHurt(Z)Lnet/minecraft/component/type/EquippableComponent$Builder;
      intermediary method_64210 Lnet/minecraft/class_10192$class_10217;method_64210(Z)Lnet/minecraft/class_10192$class_10217;
      official c Ldft$a;c(Z)Ldft$a;
    • build

      public EquippableComponent build()
      Mappings:
      Namespace Name Mixin selector
      named build Lnet/minecraft/component/type/EquippableComponent$Builder;build()Lnet/minecraft/component/type/EquippableComponent;
      intermediary method_64203 Lnet/minecraft/class_10192$class_10217;method_64203()Lnet/minecraft/class_10192;
      official a Ldft$a;a()Ldft;