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 Details

    • codec

      private final com.mojang.serialization.MapCodec<T extends ConsumeEffect> codec
      The field for the codec record component.
    • streamCodec

      private final PacketCodec<RegistryByteBuf,T extends ConsumeEffect> streamCodec
      The field for the streamCodec record component.
    • APPLY_EFFECTS

      public static final ConsumeEffect.Type<ApplyEffectsConsumeEffect> 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

      public static final ConsumeEffect.Type<RemoveEffectsConsumeEffect> 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

      public static final ConsumeEffect.Type<ClearAllEffectsConsumeEffect> 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

      public static final ConsumeEffect.Type<TeleportRandomlyConsumeEffect> 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

      public static final ConsumeEffect.Type<PlaySoundConsumeEffect> 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

  • 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

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • codec

      public com.mojang.serialization.MapCodec<T> codec()
      Returns the value of the codec record component.
      Returns:
      the value of the codec record component
    • streamCodec

      public PacketCodec<RegistryByteBuf,T> streamCodec()
      Returns the value of the streamCodec record component.
      Returns:
      the value of the streamCodec record component