Package net.minecraft.world.chunk
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/PalettesFactoryintermediary net/minecraft/class_11897official emenamed blockStatesStrategyintermediary comp_4785official anamed defaultBlockStateintermediary comp_4786official bnamed blockStatesContainerCodecintermediary comp_4787official cnamed biomeStrategyintermediary comp_4788official dnamed defaultBiomeintermediary comp_4789official enamed biomeContainerCodecintermediary comp_4790official f
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final com.mojang.serialization.Codec<ReadableContainer<RegistryEntry<Biome>>> The field for thebiomeContainerCodecrecord component.private final PaletteProvider<RegistryEntry<Biome>> The field for thebiomeStrategyrecord component.private final com.mojang.serialization.Codec<PalettedContainer<BlockState>> The field for theblockStatesContainerCodecrecord component.private final PaletteProvider<BlockState> The field for theblockStatesStrategyrecord component.private final RegistryEntry<Biome> The field for thedefaultBiomerecord component.private final BlockStateThe field for thedefaultBlockStaterecord component. -
Constructor Summary
ConstructorsConstructorDescriptionPalettesFactory(PaletteProvider<BlockState> paletteProvider, BlockState blockState, com.mojang.serialization.Codec<PalettedContainer<BlockState>> codec, PaletteProvider<RegistryEntry<Biome>> paletteProvider2, RegistryEntry<Biome> registryEntry, com.mojang.serialization.Codec<ReadableContainer<RegistryEntry<Biome>>> codec2) -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.Codec<ReadableContainer<RegistryEntry<Biome>>> Returns the value of thebiomeContainerCodecrecord component.Returns the value of thebiomeStrategyrecord component.com.mojang.serialization.Codec<PalettedContainer<BlockState>> Returns the value of theblockStatesContainerCodecrecord component.Returns the value of theblockStatesStrategyrecord component.Returns the value of thedefaultBiomerecord component.Returns the value of thedefaultBlockStaterecord component.final booleanIndicates whether some other object is "equal to" this one.static PalettesFactoryfromRegistryManager(DynamicRegistryManager registryManager) final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
blockStatesStrategy
The field for theblockStatesStrategyrecord component. -
defaultBlockState
The field for thedefaultBlockStaterecord component. -
blockStatesContainerCodec
private final com.mojang.serialization.Codec<PalettedContainer<BlockState>> blockStatesContainerCodecThe field for theblockStatesContainerCodecrecord component. -
biomeStrategy
The field for thebiomeStrategyrecord component. -
defaultBiome
The field for thedefaultBiomerecord component. -
biomeContainerCodec
private final com.mojang.serialization.Codec<ReadableContainer<RegistryEntry<Biome>>> biomeContainerCodecThe field for thebiomeContainerCodecrecord component.
-
-
Constructor Details
-
PalettesFactory
public PalettesFactory(PaletteProvider<BlockState> paletteProvider, BlockState blockState, com.mojang.serialization.Codec<PalettedContainer<BlockState>> codec, PaletteProvider<RegistryEntry<Biome>> paletteProvider2, RegistryEntry<Biome> registryEntry, com.mojang.serialization.Codec<ReadableContainer<RegistryEntry<Biome>>> codec2)
-
-
Method Details
-
fromRegistryManager
- Mappings:
Namespace Name Mixin selector named fromRegistryManagerLnet/minecraft/world/chunk/PalettesFactory;fromRegistryManager(Lnet/minecraft/registry/DynamicRegistryManager;)Lnet/minecraft/world/chunk/PalettesFactory;intermediary method_74159Lnet/minecraft/class_11897;method_74159(Lnet/minecraft/class_5455;)Lnet/minecraft/class_11897;official aLeme;a(Ljy;)Leme;
-
getBlockStateContainer
- Mappings:
Namespace Name Mixin selector named getBlockStateContainerLnet/minecraft/world/chunk/PalettesFactory;getBlockStateContainer()Lnet/minecraft/world/chunk/PalettedContainer;intermediary method_74158Lnet/minecraft/class_11897;method_74158()Lnet/minecraft/class_2841;official aLeme;a()Lemd;
-
getBiomeContainer
- Mappings:
Namespace Name Mixin selector named getBiomeContainerLnet/minecraft/world/chunk/PalettesFactory;getBiomeContainer()Lnet/minecraft/world/chunk/PalettedContainer;intermediary method_74160Lnet/minecraft/class_11897;method_74160()Lnet/minecraft/class_2841;official bLeme;b()Lemd;
-
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). -
blockStatesStrategy
Returns the value of theblockStatesStrategyrecord component.- Returns:
- the value of the
blockStatesStrategyrecord component
-
defaultBlockState
Returns the value of thedefaultBlockStaterecord component.- Returns:
- the value of the
defaultBlockStaterecord component
-
blockStatesContainerCodec
Returns the value of theblockStatesContainerCodecrecord component.- Returns:
- the value of the
blockStatesContainerCodecrecord component
-
biomeStrategy
Returns the value of thebiomeStrategyrecord component.- Returns:
- the value of the
biomeStrategyrecord component
-
defaultBiome
Returns the value of thedefaultBiomerecord component.- Returns:
- the value of the
defaultBiomerecord component
-
biomeContainerCodec
public com.mojang.serialization.Codec<ReadableContainer<RegistryEntry<Biome>>> biomeContainerCodec()Returns the value of thebiomeContainerCodecrecord component.- Returns:
- the value of the
biomeContainerCodecrecord component
-