Record Class FlatLevelGeneratorPreset

java.lang.Object
java.lang.Record
net.minecraft.world.gen.FlatLevelGeneratorPreset
Record Components:
displayItem -
settings -

public record FlatLevelGeneratorPreset(RegistryEntry<Item> displayItem, FlatChunkGeneratorConfig settings) extends Record
Mappings:
Namespace Name
named net/minecraft/world/gen/FlatLevelGeneratorPreset
intermediary net/minecraft/class_7142
official ehr
named displayItem
intermediary comp_559
official c
named settings
intermediary comp_560
official d
  • Field Details

    • displayItem

      private final RegistryEntry<Item> displayItem
      The field for the displayItem record component.
    • settings

      private final FlatChunkGeneratorConfig settings
      The field for the settings record component.
    • CODEC

      public static final com.mojang.serialization.Codec<FlatLevelGeneratorPreset> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/world/gen/FlatLevelGeneratorPreset;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_37711 Lnet/minecraft/class_7142;field_37711:Lcom/mojang/serialization/Codec;
      official a Lehr;a:Lcom/mojang/serialization/Codec;
    • ENTRY_CODEC

      public static final com.mojang.serialization.Codec<RegistryEntry<FlatLevelGeneratorPreset>> ENTRY_CODEC
      Mappings:
      Namespace Name Mixin selector
      named ENTRY_CODEC Lnet/minecraft/world/gen/FlatLevelGeneratorPreset;ENTRY_CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_37712 Lnet/minecraft/class_7142;field_37712:Lcom/mojang/serialization/Codec;
      official b Lehr;b:Lcom/mojang/serialization/Codec;
  • Constructor Details

  • Method Details

    • 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.
    • displayItem

      public RegistryEntry<Item> displayItem()
      Returns the value of the displayItem record component.
      Returns:
      the value of the displayItem record component
    • settings

      public FlatChunkGeneratorConfig settings()
      Returns the value of the settings record component.
      Returns:
      the value of the settings record component