Package net.minecraft
Record Class class_10132
java.lang.Object
java.lang.Record
net.minecraft.class_10132
- Record Components:
effects-probability-
- All Implemented Interfaces:
class_10134
public record class_10132(List<StatusEffectInstance> effects, float probability)
extends Record
implements class_10134
- Mappings:
Namespace Name named net/minecraft/class_10132intermediary net/minecraft/class_10132official czdnamed effectsintermediary comp_3094official cnamed probabilityintermediary comp_3095official f
-
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 List<StatusEffectInstance> The field for theeffectsrecord component.static final com.mojang.serialization.MapCodec<class_10132> static final PacketCodec<RegistryByteBuf, class_10132> private final floatThe field for theprobabilityrecord component.Fields inherited from interface net.minecraft.class_10134
field_53808, field_53809 -
Constructor Summary
ConstructorsConstructorDescriptionclass_10132(List<StatusEffectInstance> list) class_10132(List<StatusEffectInstance> list, float float2) class_10132(StatusEffectInstance statusEffectInstance) class_10132(StatusEffectInstance statusEffectInstance, float float2) -
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) floatReturns the value of theprobabilityrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
effects
The field for theeffectsrecord component. -
probability
private final float probabilityThe field for theprobabilityrecord component. -
field_53803
- Mappings:
Namespace Name Mixin selector named field_53803Lnet/minecraft/class_10132;field_53803:Lcom/mojang/serialization/MapCodec;intermediary field_53803Lnet/minecraft/class_10132;field_53803:Lcom/mojang/serialization/MapCodec;official aLczd;a:Lcom/mojang/serialization/MapCodec;
-
field_53804
- Mappings:
Namespace Name Mixin selector named field_53804Lnet/minecraft/class_10132;field_53804:Lnet/minecraft/network/codec/PacketCodec;intermediary field_53804Lnet/minecraft/class_10132;field_53804:Lnet/minecraft/class_9139;official bLczd;b:Lzb;
-
-
Constructor Details
-
class_10132
-
class_10132
-
class_10132
-
class_10132
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
effects
Returns the value of theeffectsrecord component.- Returns:
- the value of the
effectsrecord component
-
probability
public float probability()Returns the value of theprobabilityrecord component.- Returns:
- the value of the
probabilityrecord component
-