Record Class MapDecoration

java.lang.Object
java.lang.Record
net.minecraft.item.map.MapDecoration
Record Components:
type -
x -
z -
rotation -
name -

public record MapDecoration(RegistryEntry<MapDecorationType> type, byte x, byte z, byte rotation, Optional<Text> name) extends Record
Mappings:
Namespace Name
named net/minecraft/item/map/MapDecoration
intermediary net/minecraft/class_20
official epg
named type
intermediary comp_1842
official b
named x
intermediary comp_1843
official c
named z
intermediary comp_1844
official d
named rotation
intermediary comp_1845
official e
named name
intermediary comp_1846
official f
  • Field Details

    • type

      private final RegistryEntry<MapDecorationType> type
      The field for the type record component.
    • x

      private final byte x
      The field for the x record component.
    • z

      private final byte z
      The field for the z record component.
    • rotation

      private final byte rotation
      The field for the rotation record component.
    • name

      private final Optional<Text> name
      The field for the name record component.
    • CODEC

      public static final PacketCodec<RegistryByteBuf,MapDecoration> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/item/map/MapDecoration;CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_48920 Lnet/minecraft/class_20;field_48920:Lnet/minecraft/class_9139;
      official a Lepg;a:Lzn;
  • Constructor Details

    • MapDecoration

      public MapDecoration(RegistryEntry<MapDecorationType> registryEntry, byte x, byte z, byte rotation, Optional<Text> optional)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/item/map/MapDecoration;<init>(Lnet/minecraft/registry/entry/RegistryEntry;BBBLjava/util/Optional;)V
      intermediary <init> Lnet/minecraft/class_20;<init>(Lnet/minecraft/class_6880;BBBLjava/util/Optional;)V
      official <init> Lepg;<init>(Lji;BBBLjava/util/Optional;)V
  • Method Details

    • getAssetId

      public Identifier getAssetId()
      Mappings:
      Namespace Name Mixin selector
      named getAssetId Lnet/minecraft/item/map/MapDecoration;getAssetId()Lnet/minecraft/util/Identifier;
      intermediary method_58451 Lnet/minecraft/class_20;method_58451()Lnet/minecraft/class_2960;
      official a Lepg;a()Lalf;
    • isAlwaysRendered

      public boolean isAlwaysRendered()
      Mappings:
      Namespace Name Mixin selector
      named isAlwaysRendered Lnet/minecraft/item/map/MapDecoration;isAlwaysRendered()Z
      intermediary method_94 Lnet/minecraft/class_20;method_94()Z
      official b Lepg;b()Z
    • 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 o)
      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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • type

      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • x

      public byte x()
      Returns the value of the x record component.
      Returns:
      the value of the x record component
    • z

      public byte z()
      Returns the value of the z record component.
      Returns:
      the value of the z record component
    • rotation

      public byte rotation()
      Returns the value of the rotation record component.
      Returns:
      the value of the rotation record component
    • name

      public Optional<Text> name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component