Package net.minecraft
Record Class class_10137
java.lang.Object
java.lang.Record
net.minecraft.class_10137
- Record Components:
effects-
- All Implemented Interfaces:
class_10134
public record class_10137(RegistryEntryList<StatusEffect> effects)
extends Record
implements class_10134
- Mappings:
Namespace Name named net/minecraft/class_10137intermediary net/minecraft/class_10137official czhnamed effectsintermediary comp_3099official c
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.class_10134
class_10134.class_10135<T extends class_10134> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RegistryEntryList<StatusEffect> The field for theeffectsrecord component.static final com.mojang.serialization.MapCodec<class_10137> static final PacketCodec<RegistryByteBuf, class_10137> Fields inherited from interface net.minecraft.class_10134
field_53808, field_53809 -
Constructor Summary
ConstructorsConstructorDescriptionclass_10137(RegistryEntry<StatusEffect> registryEntry) class_10137(RegistryEntryList<StatusEffect> registryEntryList) -
Method Summary
Modifier and TypeMethodDescriptioneffects()Returns the value of theeffectsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanmethod_62866(World world, ItemStack itemStack, LivingEntity livingEntity) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
effects
The field for theeffectsrecord component. -
field_53817
- Mappings:
Namespace Name Mixin selector named field_53817Lnet/minecraft/class_10137;field_53817:Lcom/mojang/serialization/MapCodec;intermediary field_53817Lnet/minecraft/class_10137;field_53817:Lcom/mojang/serialization/MapCodec;official aLczh;a:Lcom/mojang/serialization/MapCodec;
-
field_53818
- Mappings:
Namespace Name Mixin selector named field_53818Lnet/minecraft/class_10137;field_53818:Lnet/minecraft/network/codec/PacketCodec;intermediary field_53818Lnet/minecraft/class_10137;field_53818:Lnet/minecraft/class_9139;official bLczh;b:Lzb;
-
-
Constructor Details
-
class_10137
-
class_10137
-
-
Method Details
-
method_62864
- Specified by:
method_62864in interfaceclass_10134- Mappings:
Namespace Name Mixin selector named method_62864Lnet/minecraft/class_10134;method_62864()Lnet/minecraft/class_10134$class_10135;intermediary method_62864Lnet/minecraft/class_10134;method_62864()Lnet/minecraft/class_10134$class_10135;official aLczf;a()Lczf$a;
-
method_62866
- Specified by:
method_62866in interfaceclass_10134- Mappings:
Namespace Name Mixin selector named method_62866Lnet/minecraft/class_10134;method_62866(Lnet/minecraft/world/World;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/LivingEntity;)Zintermediary method_62866Lnet/minecraft/class_10134;method_62866(Lnet/minecraft/class_1937;Lnet/minecraft/class_1799;Lnet/minecraft/class_1309;)Zofficial aLczf;a(Ldeg;Lcvp;Lbuk;)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. All components in this record class are compared withObjects::equals(Object,Object). -
effects
Returns the value of theeffectsrecord component.- Returns:
- the value of the
effectsrecord component
-