Record Class ClearAllStatusEffectsConsumeEffect
java.lang.Object
java.lang.Record
net.minecraft.world.item.consume_effects.ClearAllStatusEffectsConsumeEffect
- All Implemented Interfaces:
ConsumeEffect
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.world.item.consume_effects.ConsumeEffect
ConsumeEffect.Type<T extends ConsumeEffect>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<ClearAllStatusEffectsConsumeEffect> static final ClearAllStatusEffectsConsumeEffect
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aClearAllStatusEffectsConsumeEffect
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
apply
(Level p_366806_, ItemStack p_366692_, LivingEntity p_366699_) final boolean
Indicates whether some other object is "equal to" this one.getType()
final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
INSTANCE
-
CODEC
-
STREAM_CODEC
public static final StreamCodec<RegistryFriendlyByteBuf,ClearAllStatusEffectsConsumeEffect> STREAM_CODEC
-
-
Constructor Details
-
ClearAllStatusEffectsConsumeEffect
public ClearAllStatusEffectsConsumeEffect()Creates an instance of aClearAllStatusEffectsConsumeEffect
record class.
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceConsumeEffect
-
apply
- Specified by:
apply
in interfaceConsumeEffect
-
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.
-