Class RandomSequencesState

java.lang.Object
net.minecraft.world.PersistentState
net.minecraft.util.math.random.RandomSequencesState

public class RandomSequencesState extends PersistentState
Mappings:
Namespace Name
named net/minecraft/util/math/random/RandomSequencesState
intermediary net/minecraft/class_8565
official brc
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/util/math/random/RandomSequencesState;LOGGER:Lorg/slf4j/Logger;
      intermediary field_44861 Lnet/minecraft/class_8565;field_44861:Lorg/slf4j/Logger;
      official a Lbrc;a:Lorg/slf4j/Logger;
    • seed

      private final long seed
      Mappings:
      Namespace Name Mixin selector
      named seed Lnet/minecraft/util/math/random/RandomSequencesState;seed:J
      intermediary field_44862 Lnet/minecraft/class_8565;field_44862:J
      official b Lbrc;b:J
    • salt

      private int salt
      Mappings:
      Namespace Name Mixin selector
      named salt Lnet/minecraft/util/math/random/RandomSequencesState;salt:I
      intermediary field_45100 Lnet/minecraft/class_8565;field_45100:I
      official c Lbrc;c:I
    • includeWorldSeed

      private boolean includeWorldSeed
      Mappings:
      Namespace Name Mixin selector
      named includeWorldSeed Lnet/minecraft/util/math/random/RandomSequencesState;includeWorldSeed:Z
      intermediary field_45101 Lnet/minecraft/class_8565;field_45101:Z
      official d Lbrc;d:Z
    • includeSequenceId

      private boolean includeSequenceId
      Mappings:
      Namespace Name Mixin selector
      named includeSequenceId Lnet/minecraft/util/math/random/RandomSequencesState;includeSequenceId:Z
      intermediary field_45102 Lnet/minecraft/class_8565;field_45102:Z
      official e Lbrc;e:Z
    • sequences

      private final Map<Identifier,RandomSequence> sequences
      Mappings:
      Namespace Name Mixin selector
      named sequences Lnet/minecraft/util/math/random/RandomSequencesState;sequences:Ljava/util/Map;
      intermediary field_44863 Lnet/minecraft/class_8565;field_44863:Ljava/util/Map;
      official f Lbrc;f:Ljava/util/Map;
  • Constructor Details

    • RandomSequencesState

      public RandomSequencesState(long seed)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/util/math/random/RandomSequencesState;<init>(J)V
      intermediary <init> Lnet/minecraft/class_8565;<init>(J)V
      official <init> Lbrc;<init>(J)V
  • Method Details

    • getPersistentStateType

      public static PersistentState.Type<RandomSequencesState> getPersistentStateType(long seed)
      Mappings:
      Namespace Name Mixin selector
      named getPersistentStateType Lnet/minecraft/util/math/random/RandomSequencesState;getPersistentStateType(J)Lnet/minecraft/world/PersistentState$Type;
      intermediary method_52511 Lnet/minecraft/class_8565;method_52511(J)Lnet/minecraft/class_18$class_8645;
      official a Lbrc;a(J)Lepd$a;
    • getOrCreate

      public Random getOrCreate(Identifier id)
      Mappings:
      Namespace Name Mixin selector
      named getOrCreate Lnet/minecraft/util/math/random/RandomSequencesState;getOrCreate(Lnet/minecraft/util/Identifier;)Lnet/minecraft/util/math/random/Random;
      intermediary method_51843 Lnet/minecraft/class_8565;method_51843(Lnet/minecraft/class_2960;)Lnet/minecraft/class_5819;
      official a Lbrc;a(Lalf;)Lazh;
    • createSequence

      private RandomSequence createSequence(Identifier id)
      Mappings:
      Namespace Name Mixin selector
      named createSequence Lnet/minecraft/util/math/random/RandomSequencesState;createSequence(Lnet/minecraft/util/Identifier;)Lnet/minecraft/util/math/random/RandomSequence;
      intermediary method_52519 Lnet/minecraft/class_8565;method_52519(Lnet/minecraft/class_2960;)Lnet/minecraft/class_8564;
      official c Lbrc;c(Lalf;)Lbrb;
    • createSequence

      private RandomSequence createSequence(Identifier id, int salt, boolean includeWorldSeed, boolean includeSequenceId)
      Mappings:
      Namespace Name Mixin selector
      named createSequence Lnet/minecraft/util/math/random/RandomSequencesState;createSequence(Lnet/minecraft/util/Identifier;IZZ)Lnet/minecraft/util/math/random/RandomSequence;
      intermediary method_52518 Lnet/minecraft/class_8565;method_52518(Lnet/minecraft/class_2960;IZZ)Lnet/minecraft/class_8564;
      official b Lbrc;b(Lalf;IZZ)Lbrb;
    • forEachSequence

      public void forEachSequence(BiConsumer<Identifier,RandomSequence> consumer)
      Mappings:
      Namespace Name Mixin selector
      named forEachSequence Lnet/minecraft/util/math/random/RandomSequencesState;forEachSequence(Ljava/util/function/BiConsumer;)V
      intermediary method_52513 Lnet/minecraft/class_8565;method_52513(Ljava/util/function/BiConsumer;)V
      official a Lbrc;a(Ljava/util/function/BiConsumer;)V
    • setDefaultParameters

      public void setDefaultParameters(int salt, boolean includeWorldSeed, boolean includeSequenceId)
      Mappings:
      Namespace Name Mixin selector
      named setDefaultParameters Lnet/minecraft/util/math/random/RandomSequencesState;setDefaultParameters(IZZ)V
      intermediary method_52510 Lnet/minecraft/class_8565;method_52510(IZZ)V
      official a Lbrc;a(IZZ)V
    • writeNbt

      public NbtCompound writeNbt(NbtCompound nbt, RegistryWrapper.WrapperLookup registryLookup)
      Specified by:
      writeNbt in class PersistentState
      Mappings:
      Namespace Name Mixin selector
      named writeNbt Lnet/minecraft/world/PersistentState;writeNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Lnet/minecraft/nbt/NbtCompound;
      intermediary method_75 Lnet/minecraft/class_18;method_75(Lnet/minecraft/class_2487;Lnet/minecraft/class_7225$class_7874;)Lnet/minecraft/class_2487;
      official a Lepd;a(Lus;Ljk$a;)Lus;
    • getBooleanFromNbtOrFallback

      private static boolean getBooleanFromNbtOrFallback(NbtCompound nbt, String key, boolean fallback)
      Mappings:
      Namespace Name Mixin selector
      named getBooleanFromNbtOrFallback Lnet/minecraft/util/math/random/RandomSequencesState;getBooleanFromNbtOrFallback(Lnet/minecraft/nbt/NbtCompound;Ljava/lang/String;Z)Z
      intermediary method_52514 Lnet/minecraft/class_8565;method_52514(Lnet/minecraft/class_2487;Ljava/lang/String;Z)Z
      official a Lbrc;a(Lus;Ljava/lang/String;Z)Z
    • fromNbt

      public static RandomSequencesState fromNbt(long seed, NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      named fromNbt Lnet/minecraft/util/math/random/RandomSequencesState;fromNbt(JLnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/util/math/random/RandomSequencesState;
      intermediary method_51842 Lnet/minecraft/class_8565;method_51842(JLnet/minecraft/class_2487;)Lnet/minecraft/class_8565;
      official a Lbrc;a(JLus;)Lbrc;
    • resetAll

      public int resetAll()
      Mappings:
      Namespace Name Mixin selector
      named resetAll Lnet/minecraft/util/math/random/RandomSequencesState;resetAll()I
      intermediary method_52509 Lnet/minecraft/class_8565;method_52509()I
      official a Lbrc;a()I
    • reset

      public void reset(Identifier id)
      Mappings:
      Namespace Name Mixin selector
      named reset Lnet/minecraft/util/math/random/RandomSequencesState;reset(Lnet/minecraft/util/Identifier;)V
      intermediary method_52517 Lnet/minecraft/class_8565;method_52517(Lnet/minecraft/class_2960;)V
      official b Lbrc;b(Lalf;)V
    • reset

      public void reset(Identifier id, int salt, boolean includeWorldSeed, boolean includeSequenceId)
      Mappings:
      Namespace Name Mixin selector
      named reset Lnet/minecraft/util/math/random/RandomSequencesState;reset(Lnet/minecraft/util/Identifier;IZZ)V
      intermediary method_52512 Lnet/minecraft/class_8565;method_52512(Lnet/minecraft/class_2960;IZZ)V
      official a Lbrc;a(Lalf;IZZ)V