Class RandomSequencesState

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

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

    • LOGGER

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

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

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

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

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

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

    • RandomSequencesState

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

    • getPersistentStateType

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

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

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

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

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

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

      public NbtCompound writeNbt(NbtCompound nbt)
      Specified by:
      writeNbt in class PersistentState
      Mappings:
      Namespace Name Mixin selector
      official a Lebr;a(Lqw;)Lqw;
      intermediary method_75 Lnet/minecraft/class_18;method_75(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;
      named writeNbt Lnet/minecraft/world/PersistentState;writeNbt(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/nbt/NbtCompound;
    • getBooleanFromNbtOrFallback

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

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

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

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

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