Package net.minecraft

Record Class class_10192

java.lang.Object
java.lang.Record
net.minecraft.class_10192
Record Components:
slot -
equipSound -
model -
allowedEntities -
dispensable -

public record class_10192(EquipmentSlot slot, RegistryEntry<SoundEvent> equipSound, Optional<Identifier> model, Optional<RegistryEntryList<EntityType<?>>> allowedEntities, boolean dispensable) extends Record
Mappings:
Namespace Name
named net/minecraft/class_10192
intermediary net/minecraft/class_10192
official ddh
named slot
intermediary comp_3174
official c
named equipSound
intermediary comp_3175
official d
named model
intermediary comp_3176
official e
named allowedEntities
intermediary comp_3177
official f
named dispensable
intermediary comp_3178
official g
  • Field Details

    • slot

      private final EquipmentSlot slot
      The field for the slot record component.
    • equipSound

      private final RegistryEntry<SoundEvent> equipSound
      The field for the equipSound record component.
    • model

      private final Optional<Identifier> model
      The field for the model record component.
    • allowedEntities

      private final Optional<RegistryEntryList<EntityType<?>>> allowedEntities
      The field for the allowedEntities record component.
    • dispensable

      private final boolean dispensable
      The field for the dispensable record component.
    • field_54145

      public static final com.mojang.serialization.Codec<class_10192> field_54145
      Mappings:
      Namespace Name Mixin selector
      named field_54145 Lnet/minecraft/class_10192;field_54145:Lcom/mojang/serialization/Codec;
      intermediary field_54145 Lnet/minecraft/class_10192;field_54145:Lcom/mojang/serialization/Codec;
      official a Lddh;a:Lcom/mojang/serialization/Codec;
    • field_54146

      public static final PacketCodec<RegistryByteBuf,class_10192> field_54146
      Mappings:
      Namespace Name Mixin selector
      named field_54146 Lnet/minecraft/class_10192;field_54146:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_54146 Lnet/minecraft/class_10192;field_54146:Lnet/minecraft/class_9139;
      official b Lddh;b:Lzf;
  • Constructor Details

  • Method Details

    • method_64017

      public static class_10192 method_64017(DyeColor dyeColor)
      Mappings:
      Namespace Name Mixin selector
      named method_64017 Lnet/minecraft/class_10192;method_64017(Lnet/minecraft/util/DyeColor;)Lnet/minecraft/class_10192;
      intermediary method_64017 Lnet/minecraft/class_10192;method_64017(Lnet/minecraft/class_1767;)Lnet/minecraft/class_10192;
      official a Lddh;a(Lcuu;)Lddh;
    • method_64018

      public ActionResult method_64018(ItemStack itemStack, PlayerEntity playerEntity)
      Mappings:
      Namespace Name Mixin selector
      named method_64018 Lnet/minecraft/class_10192;method_64018(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/util/ActionResult;
      intermediary method_64018 Lnet/minecraft/class_10192;method_64018(Lnet/minecraft/class_1799;Lnet/minecraft/class_1657;)Lnet/minecraft/class_1269;
      official a Lddh;a(Lcvx;Lcoh;)Lbry;
    • method_64015

      public boolean method_64015(EntityType<?> entityType)
      Mappings:
      Namespace Name Mixin selector
      named method_64015 Lnet/minecraft/class_10192;method_64015(Lnet/minecraft/entity/EntityType;)Z
      intermediary method_64015 Lnet/minecraft/class_10192;method_64015(Lnet/minecraft/class_1299;)Z
      official a Lddh;a(Lbug;)Z
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • slot

      public EquipmentSlot slot()
      Returns the value of the slot record component.
      Returns:
      the value of the slot record component
    • equipSound

      public RegistryEntry<SoundEvent> equipSound()
      Returns the value of the equipSound record component.
      Returns:
      the value of the equipSound record component
    • model

      public Optional<Identifier> model()
      Returns the value of the model record component.
      Returns:
      the value of the model record component
    • allowedEntities

      public Optional<RegistryEntryList<EntityType<?>>> allowedEntities()
      Returns the value of the allowedEntities record component.
      Returns:
      the value of the allowedEntities record component
    • dispensable

      public boolean dispensable()
      Returns the value of the dispensable record component.
      Returns:
      the value of the dispensable record component