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 bqx
  • 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 Lbqx;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 Lbqx;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 Lbqx;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 Lbqx;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 Lbqx;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 Lbqx;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> Lbqx;<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 Lbqx;a(J)Leqf$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 Lbqx;a(Lakq;)Layv;
    • 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 Lbqx;c(Lakq;)Lbqw;
    • 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 Lbqx;b(Lakq;IZZ)Lbqw;
    • 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 Lbqx;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 Lbqx;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 Leqf;a(Lua;Ljo$a;)Lua;
    • 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 Lbqx;a(Lua;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 Lbqx;a(JLua;)Lbqx;
    • 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 Lbqx;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 Lbqx;b(Lakq;)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 Lbqx;a(Lakq;IZZ)V