Package net.minecraft.item.consume
Record Class ConsumeEffect.Type<T extends ConsumeEffect>
java.lang.Object
java.lang.Record
net.minecraft.item.consume.ConsumeEffect.Type<T>
- Record Components:
codec
-streamCodec
-
- Enclosing interface:
ConsumeEffect
public static record ConsumeEffect.Type<T extends ConsumeEffect>(com.mojang.serialization.MapCodec<T extends ConsumeEffect> codec, PacketCodec<RegistryByteBuf,T extends ConsumeEffect> streamCodec)
extends Record
- Mappings:
Namespace Name named net/minecraft/item/consume/ConsumeEffect$Type
intermediary net/minecraft/class_10134$class_10135
official dba$a
named codec
intermediary comp_3096
official f
named streamCodec
intermediary comp_3097
official g
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ConsumeEffect.Type
<ApplyEffectsConsumeEffect> static final ConsumeEffect.Type
<ClearAllEffectsConsumeEffect> private final com.mojang.serialization.MapCodec
<T> The field for thecodec
record component.static final ConsumeEffect.Type
<PlaySoundConsumeEffect> static final ConsumeEffect.Type
<RemoveEffectsConsumeEffect> private final PacketCodec
<RegistryByteBuf, T> The field for thestreamCodec
record component.static final ConsumeEffect.Type
<TeleportRandomlyConsumeEffect> -
Constructor Summary
ConstructorDescriptionType
(com.mojang.serialization.MapCodec<T> mapCodec, PacketCodec<RegistryByteBuf, T> packetCodec) -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec
<T> codec()
Returns the value of thecodec
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.private static <T extends ConsumeEffect>
ConsumeEffect.Type<T> register
(String id, com.mojang.serialization.MapCodec<T> codec, PacketCodec<RegistryByteBuf, T> packetCodec) Returns the value of thestreamCodec
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
codec
The field for thecodec
record component. -
streamCodec
The field for thestreamCodec
record component. -
APPLY_EFFECTS
- Mappings:
Namespace Name Mixin selector named APPLY_EFFECTS
Lnet/minecraft/item/consume/ConsumeEffect$Type;APPLY_EFFECTS:Lnet/minecraft/item/consume/ConsumeEffect$Type;
intermediary field_53810
Lnet/minecraft/class_10134$class_10135;field_53810:Lnet/minecraft/class_10134$class_10135;
official a
Ldba$a;a:Ldba$a;
-
REMOVE_EFFECTS
- Mappings:
Namespace Name Mixin selector named REMOVE_EFFECTS
Lnet/minecraft/item/consume/ConsumeEffect$Type;REMOVE_EFFECTS:Lnet/minecraft/item/consume/ConsumeEffect$Type;
intermediary field_53811
Lnet/minecraft/class_10134$class_10135;field_53811:Lnet/minecraft/class_10134$class_10135;
official b
Ldba$a;b:Ldba$a;
-
CLEAR_ALL_EFFECTS
- Mappings:
Namespace Name Mixin selector named CLEAR_ALL_EFFECTS
Lnet/minecraft/item/consume/ConsumeEffect$Type;CLEAR_ALL_EFFECTS:Lnet/minecraft/item/consume/ConsumeEffect$Type;
intermediary field_53812
Lnet/minecraft/class_10134$class_10135;field_53812:Lnet/minecraft/class_10134$class_10135;
official c
Ldba$a;c:Ldba$a;
-
TELEPORT_RANDOMLY
- Mappings:
Namespace Name Mixin selector named TELEPORT_RANDOMLY
Lnet/minecraft/item/consume/ConsumeEffect$Type;TELEPORT_RANDOMLY:Lnet/minecraft/item/consume/ConsumeEffect$Type;
intermediary field_53813
Lnet/minecraft/class_10134$class_10135;field_53813:Lnet/minecraft/class_10134$class_10135;
official d
Ldba$a;d:Ldba$a;
-
PLAY_SOUND
- Mappings:
Namespace Name Mixin selector named PLAY_SOUND
Lnet/minecraft/item/consume/ConsumeEffect$Type;PLAY_SOUND:Lnet/minecraft/item/consume/ConsumeEffect$Type;
intermediary field_53814
Lnet/minecraft/class_10134$class_10135;field_53814:Lnet/minecraft/class_10134$class_10135;
official e
Ldba$a;e:Ldba$a;
-
-
Constructor Details
-
Type
public Type(com.mojang.serialization.MapCodec<T> mapCodec, PacketCodec<RegistryByteBuf, T> packetCodec)
-
-
Method Details
-
register
private static <T extends ConsumeEffect> ConsumeEffect.Type<T> register(String id, com.mojang.serialization.MapCodec<T> codec, PacketCodec<RegistryByteBuf, T> packetCodec) - Mappings:
Namespace Name Mixin selector named register
Lnet/minecraft/item/consume/ConsumeEffect$Type;register(Ljava/lang/String;Lcom/mojang/serialization/MapCodec;Lnet/minecraft/network/codec/PacketCodec;)Lnet/minecraft/item/consume/ConsumeEffect$Type;
intermediary method_62867
Lnet/minecraft/class_10134$class_10135;method_62867(Ljava/lang/String;Lcom/mojang/serialization/MapCodec;Lnet/minecraft/class_9139;)Lnet/minecraft/class_10134$class_10135;
official a
Ldba$a;a(Ljava/lang/String;Lcom/mojang/serialization/MapCodec;Lzt;)Ldba$a;
-
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
codec
Returns the value of thecodec
record component.- Returns:
- the value of the
codec
record component
-
streamCodec
Returns the value of thestreamCodec
record component.- Returns:
- the value of the
streamCodec
record component
-