Record Class PalettesFactory

java.lang.Object
java.lang.Record
net.minecraft.world.chunk.PalettesFactory
Record Components:
blockStatesStrategy -
defaultBlockState -
blockStatesContainerCodec -
biomeStrategy -
defaultBiome -
biomeContainerCodec -

public record PalettesFactory(PaletteProvider<BlockState> blockStatesStrategy, BlockState defaultBlockState, com.mojang.serialization.Codec<PalettedContainer<BlockState>> blockStatesContainerCodec, PaletteProvider<RegistryEntry<Biome>> biomeStrategy, RegistryEntry<Biome> defaultBiome, com.mojang.serialization.Codec<ReadableContainer<RegistryEntry<Biome>>> biomeContainerCodec) extends Record
Mappings:
Namespace Name
named net/minecraft/world/chunk/PalettesFactory
intermediary net/minecraft/class_11897
official eme
named blockStatesStrategy
intermediary comp_4785
official a
named defaultBlockState
intermediary comp_4786
official b
named blockStatesContainerCodec
intermediary comp_4787
official c
named biomeStrategy
intermediary comp_4788
official d
named defaultBiome
intermediary comp_4789
official e
named biomeContainerCodec
intermediary comp_4790
official f
  • Field Details

  • Constructor Details

  • Method Details

    • fromRegistryManager

      public static PalettesFactory fromRegistryManager(DynamicRegistryManager registryManager)
      Mappings:
      Namespace Name Mixin selector
      named fromRegistryManager Lnet/minecraft/world/chunk/PalettesFactory;fromRegistryManager(Lnet/minecraft/registry/DynamicRegistryManager;)Lnet/minecraft/world/chunk/PalettesFactory;
      intermediary method_74159 Lnet/minecraft/class_11897;method_74159(Lnet/minecraft/class_5455;)Lnet/minecraft/class_11897;
      official a Leme;a(Ljy;)Leme;
    • getBlockStateContainer

      public PalettedContainer<BlockState> getBlockStateContainer()
      Mappings:
      Namespace Name Mixin selector
      named getBlockStateContainer Lnet/minecraft/world/chunk/PalettesFactory;getBlockStateContainer()Lnet/minecraft/world/chunk/PalettedContainer;
      intermediary method_74158 Lnet/minecraft/class_11897;method_74158()Lnet/minecraft/class_2841;
      official a Leme;a()Lemd;
    • getBiomeContainer

      public PalettedContainer<RegistryEntry<Biome>> getBiomeContainer()
      Mappings:
      Namespace Name Mixin selector
      named getBiomeContainer Lnet/minecraft/world/chunk/PalettesFactory;getBiomeContainer()Lnet/minecraft/world/chunk/PalettedContainer;
      intermediary method_74160 Lnet/minecraft/class_11897;method_74160()Lnet/minecraft/class_2841;
      official b Leme;b()Lemd;
    • 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.
    • blockStatesStrategy

      public PaletteProvider<BlockState> blockStatesStrategy()
      Returns the value of the blockStatesStrategy record component.
      Returns:
      the value of the blockStatesStrategy record component
    • defaultBlockState

      public BlockState defaultBlockState()
      Returns the value of the defaultBlockState record component.
      Returns:
      the value of the defaultBlockState record component
    • blockStatesContainerCodec

      public com.mojang.serialization.Codec<PalettedContainer<BlockState>> blockStatesContainerCodec()
      Returns the value of the blockStatesContainerCodec record component.
      Returns:
      the value of the blockStatesContainerCodec record component
    • biomeStrategy

      public PaletteProvider<RegistryEntry<Biome>> biomeStrategy()
      Returns the value of the biomeStrategy record component.
      Returns:
      the value of the biomeStrategy record component
    • defaultBiome

      public RegistryEntry<Biome> defaultBiome()
      Returns the value of the defaultBiome record component.
      Returns:
      the value of the defaultBiome record component
    • biomeContainerCodec

      public com.mojang.serialization.Codec<ReadableContainer<RegistryEntry<Biome>>> biomeContainerCodec()
      Returns the value of the biomeContainerCodec record component.
      Returns:
      the value of the biomeContainerCodec record component