Package net.minecraft.item.consume
Record Class RemoveEffectsConsumeEffect
java.lang.Object
java.lang.Record
net.minecraft.item.consume.RemoveEffectsConsumeEffect
- Record Components:
- effects-
- All Implemented Interfaces:
- ConsumeEffect
public record RemoveEffectsConsumeEffect(RegistryEntryList<StatusEffect> effects)
extends Record
implements ConsumeEffect
- Mappings:
- Namespace - Name - named - net/minecraft/item/consume/RemoveEffectsConsumeEffect- intermediary - net/minecraft/class_10137- official - dae- named - effects- intermediary - comp_3099- official - c
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.minecraft.item.consume.ConsumeEffectConsumeEffect.Type<T extends ConsumeEffect>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<RemoveEffectsConsumeEffect> private final RegistryEntryList<StatusEffect> The field for theeffectsrecord component.static final PacketCodec<RegistryByteBuf, RemoveEffectsConsumeEffect> 
- 
Constructor SummaryConstructorsConstructorDescriptionRemoveEffectsConsumeEffect(RegistryEntryList<StatusEffect> registryEntryList) 
- 
Method SummaryModifier and TypeMethodDescriptioneffects()Returns the value of theeffectsrecord component.final booleanIndicates whether some other object is "equal to" this one.getType()final inthashCode()Returns a hash code value for this object.booleanonConsume(World world, ItemStack stack, LivingEntity user) final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
effectsThe field for theeffectsrecord component.
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/item/consume/RemoveEffectsConsumeEffect;CODEC:Lcom/mojang/serialization/MapCodec;- intermediary - field_53817- Lnet/minecraft/class_10137;field_53817:Lcom/mojang/serialization/MapCodec;- official - a- Ldae;a:Lcom/mojang/serialization/MapCodec;
 
- 
PACKET_CODEC- Mappings:
- Namespace - Name - Mixin selector - named - PACKET_CODEC- Lnet/minecraft/item/consume/RemoveEffectsConsumeEffect;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;- intermediary - field_53818- Lnet/minecraft/class_10137;field_53818:Lnet/minecraft/class_9139;- official - b- Ldae;b:Lyn;
 
 
- 
- 
Constructor Details- 
RemoveEffectsConsumeEffect- Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/item/consume/RemoveEffectsConsumeEffect;<init>(Lnet/minecraft/registry/entry/RegistryEntry;)V- intermediary - <init>- Lnet/minecraft/class_10137;<init>(Lnet/minecraft/class_6880;)V- official - <init>- Ldae;<init>(Ljr;)V
 
- 
RemoveEffectsConsumeEffect
 
- 
- 
Method Details- 
getType- Specified by:
- getTypein interface- ConsumeEffect
- Mappings:
- Namespace - Name - Mixin selector - named - getType- Lnet/minecraft/item/consume/ConsumeEffect;getType()Lnet/minecraft/item/consume/ConsumeEffect$Type;- intermediary - method_62864- Lnet/minecraft/class_10134;method_62864()Lnet/minecraft/class_10134$class_10135;- official - a- Ldac;a()Ldac$a;
 
- 
onConsume- Specified by:
- onConsumein interface- ConsumeEffect
- Mappings:
- Namespace - Name - Mixin selector - named - onConsume- Lnet/minecraft/item/consume/ConsumeEffect;onConsume(Lnet/minecraft/world/World;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/LivingEntity;)Z- intermediary - method_62866- Lnet/minecraft/class_10134;method_62866(Lnet/minecraft/class_1937;Lnet/minecraft/class_1799;Lnet/minecraft/class_1309;)Z- official - a- Ldac;a(Ldgj;Lcwq;Lbvi;)Z
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
effectsReturns the value of theeffectsrecord component.- Returns:
- the value of the effectsrecord component
 
 
-