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_10192intermediary net/minecraft/class_10192official ddhnamed slotintermediary comp_3174official cnamed equipSoundintermediary comp_3175official dnamed modelintermediary comp_3176official enamed allowedEntitiesintermediary comp_3177official fnamed dispensableintermediary comp_3178official g
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Optional<RegistryEntryList<EntityType<?>>> The field for theallowedEntitiesrecord component.private final booleanThe field for thedispensablerecord component.private final RegistryEntry<SoundEvent> The field for theequipSoundrecord component.static final com.mojang.serialization.Codec<class_10192> static final PacketCodec<RegistryByteBuf, class_10192> private final Optional<Identifier> The field for themodelrecord component.private final EquipmentSlotThe field for theslotrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionclass_10192(EquipmentSlot equipmentSlot, RegistryEntry<SoundEvent> registryEntry, Optional<Identifier> optional, Optional<RegistryEntryList<EntityType<?>>> optional2, boolean bool) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theallowedEntitiesrecord component.booleanReturns the value of thedispensablerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theequipSoundrecord component.final inthashCode()Returns a hash code value for this object.booleanmethod_64015(EntityType<?> entityType) static class_10192method_64017(DyeColor dyeColor) method_64018(ItemStack itemStack, PlayerEntity playerEntity) model()Returns the value of themodelrecord component.slot()Returns the value of theslotrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
slot
The field for theslotrecord component. -
equipSound
The field for theequipSoundrecord component. -
model
The field for themodelrecord component. -
allowedEntities
The field for theallowedEntitiesrecord component. -
dispensable
private final boolean dispensableThe field for thedispensablerecord component. -
field_54145
- Mappings:
Namespace Name Mixin selector named field_54145Lnet/minecraft/class_10192;field_54145:Lcom/mojang/serialization/Codec;intermediary field_54145Lnet/minecraft/class_10192;field_54145:Lcom/mojang/serialization/Codec;official aLddh;a:Lcom/mojang/serialization/Codec;
-
field_54146
- Mappings:
Namespace Name Mixin selector named field_54146Lnet/minecraft/class_10192;field_54146:Lnet/minecraft/network/codec/PacketCodec;intermediary field_54146Lnet/minecraft/class_10192;field_54146:Lnet/minecraft/class_9139;official bLddh;b:Lzf;
-
-
Constructor Details
-
class_10192
public class_10192(EquipmentSlot equipmentSlot, RegistryEntry<SoundEvent> registryEntry, Optional<Identifier> optional, Optional<RegistryEntryList<EntityType<?>>> optional2, boolean bool)
-
-
Method Details
-
method_64017
- Mappings:
Namespace Name Mixin selector named method_64017Lnet/minecraft/class_10192;method_64017(Lnet/minecraft/util/DyeColor;)Lnet/minecraft/class_10192;intermediary method_64017Lnet/minecraft/class_10192;method_64017(Lnet/minecraft/class_1767;)Lnet/minecraft/class_10192;official aLddh;a(Lcuu;)Lddh;
-
method_64018
- Mappings:
Namespace Name Mixin selector named method_64018Lnet/minecraft/class_10192;method_64018(Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/util/ActionResult;intermediary method_64018Lnet/minecraft/class_10192;method_64018(Lnet/minecraft/class_1799;Lnet/minecraft/class_1657;)Lnet/minecraft/class_1269;official aLddh;a(Lcvx;Lcoh;)Lbry;
-
method_64015
- Mappings:
Namespace Name Mixin selector named method_64015Lnet/minecraft/class_10192;method_64015(Lnet/minecraft/entity/EntityType;)Zintermediary method_64015Lnet/minecraft/class_10192;method_64015(Lnet/minecraft/class_1299;)Zofficial aLddh;a(Lbug;)Z
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
slot
Returns the value of theslotrecord component.- Returns:
- the value of the
slotrecord component
-
equipSound
Returns the value of theequipSoundrecord component.- Returns:
- the value of the
equipSoundrecord component
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
allowedEntities
Returns the value of theallowedEntitiesrecord component.- Returns:
- the value of the
allowedEntitiesrecord component
-
dispensable
public boolean dispensable()Returns the value of thedispensablerecord component.- Returns:
- the value of the
dispensablerecord component
-