Package net.minecraft.item.consume
Record Class ClearAllEffectsConsumeEffect
java.lang.Object
java.lang.Record
net.minecraft.item.consume.ClearAllEffectsConsumeEffect
- All Implemented Interfaces:
ConsumeEffect
- Mappings:
Namespace Name named net/minecraft/item/consume/ClearAllEffectsConsumeEffect
intermediary net/minecraft/class_10133
official daz
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.item.consume.ConsumeEffect
ConsumeEffect.Type<T extends ConsumeEffect>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<ClearAllEffectsConsumeEffect> static final ClearAllEffectsConsumeEffect
static final PacketCodec
<RegistryByteBuf, ClearAllEffectsConsumeEffect> -
Constructor Summary
ConstructorDescriptionCreates an instance of aClearAllEffectsConsumeEffect
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.getType()
final int
hashCode()
Returns a hash code value for this object.boolean
onConsume
(World world, ItemStack stack, LivingEntity user) final String
toString()
Returns a string representation of this record class.
-
Field Details
-
INSTANCE
- Mappings:
Namespace Name Mixin selector named INSTANCE
Lnet/minecraft/item/consume/ClearAllEffectsConsumeEffect;INSTANCE:Lnet/minecraft/item/consume/ClearAllEffectsConsumeEffect;
intermediary field_53805
Lnet/minecraft/class_10133;field_53805:Lnet/minecraft/class_10133;
official a
Ldaz;a:Ldaz;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/item/consume/ClearAllEffectsConsumeEffect;CODEC:Lcom/mojang/serialization/MapCodec;
intermediary field_53806
Lnet/minecraft/class_10133;field_53806:Lcom/mojang/serialization/MapCodec;
official b
Ldaz;b:Lcom/mojang/serialization/MapCodec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODEC
Lnet/minecraft/item/consume/ClearAllEffectsConsumeEffect;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_53807
Lnet/minecraft/class_10133;field_53807:Lnet/minecraft/class_9139;
official c
Ldaz;c:Lzt;
-
-
Constructor Details
-
ClearAllEffectsConsumeEffect
public ClearAllEffectsConsumeEffect()Creates an instance of aClearAllEffectsConsumeEffect
record class.
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceConsumeEffect
- 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
Ldba;a()Ldba$a;
-
onConsume
- Specified by:
onConsume
in interfaceConsumeEffect
- 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
Ldba;a(Ldhh;Lcxo;Lbwf;)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.
-