Record Class DamageImmunity
java.lang.Object
java.lang.Record
net.minecraft.world.item.enchantment.effects.DamageImmunity
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<DamageImmunity> static final DamageImmunity -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
INSTANCE
-
CODEC
-
-
Constructor Details
-
DamageImmunity
public DamageImmunity()Creates an instance of aDamageImmunityrecord class.
-
-
Method Details
-
toString
-
hashCode
-
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.
-