Class NoiseBlockStateProvider

Direct Known Subclasses:
DualNoiseBlockStateProvider

public class NoiseBlockStateProvider extends AbstractNoiseBlockStateProvider
Mappings:
Namespace Name
official dbk
intermediary net/minecraft/class_6580
named net/minecraft/world/gen/stateprovider/NoiseBlockStateProvider
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<NoiseBlockStateProvider> CODEC
      Mappings:
      Namespace Name Mixin selector
      official g Ldbk;g:Lcom/mojang/serialization/Codec;
      intermediary field_34711 Lnet/minecraft/class_6580;field_34711:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/world/gen/stateprovider/NoiseBlockStateProvider;CODEC:Lcom/mojang/serialization/Codec;
    • states

      protected final List<BlockState> states
      Mappings:
      Namespace Name Mixin selector
      official h Ldbk;h:Ljava/util/List;
      intermediary field_34712 Lnet/minecraft/class_6580;field_34712:Ljava/util/List;
      named states Lnet/minecraft/world/gen/stateprovider/NoiseBlockStateProvider;states:Ljava/util/List;
  • Constructor Details

    • NoiseBlockStateProvider

      public NoiseBlockStateProvider(long seed, DoublePerlinNoiseSampler.NoiseParameters noiseParameters, float scale, List<BlockState> states)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldbk;<init>(JLdha$a;FLjava/util/List;)V
      intermediary <init> Lnet/minecraft/class_6580;<init>(JLnet/minecraft/class_5216$class_5487;FLjava/util/List;)V
      named <init> Lnet/minecraft/world/gen/stateprovider/NoiseBlockStateProvider;<init>(JLnet/minecraft/util/math/noise/DoublePerlinNoiseSampler$NoiseParameters;FLjava/util/List;)V
  • Method Details

    • fillNoiseCodecFields

      protected static <P extends NoiseBlockStateProvider> com.mojang.datafixers.Products.P4<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<P>,Long,DoublePerlinNoiseSampler.NoiseParameters,Float,List<BlockState>> fillNoiseCodecFields(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<P> instance)
      Mappings:
      Namespace Name Mixin selector
      official b Ldbk;b(Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/Products$P4;
      intermediary method_38447 Lnet/minecraft/class_6580;method_38447(Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/Products$P4;
      named fillNoiseCodecFields Lnet/minecraft/world/gen/stateprovider/NoiseBlockStateProvider;fillNoiseCodecFields(Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/Products$P4;
    • getType

      protected BlockStateProviderType<?> getType()
      Returns the type of this block state provider.
      Specified by:
      getType in class BlockStateProvider
      Returns:
      the type of this block state provider
      Mappings:
      Namespace Name Mixin selector
      official a Ldbg;a()Ldbh;
      intermediary method_28862 Lnet/minecraft/class_4651;method_28862()Lnet/minecraft/class_4652;
      named getType Lnet/minecraft/world/gen/stateprovider/BlockStateProvider;getType()Lnet/minecraft/world/gen/stateprovider/BlockStateProviderType;
    • getBlockState

      public BlockState getBlockState(Random random, BlockPos pos)
      Returns a provided block state.
      Specified by:
      getBlockState in class BlockStateProvider
      Returns:
      a provided block state
      Mappings:
      Namespace Name Mixin selector
      official a Ldbg;a(Ljava/util/Random;Lgh;)Lcoc;
      intermediary method_23455 Lnet/minecraft/class_4651;method_23455(Ljava/util/Random;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;
      named getBlockState Lnet/minecraft/world/gen/stateprovider/BlockStateProvider;getBlockState(Ljava/util/Random;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
    • getStateFromList

      protected BlockState getStateFromList(List<BlockState> states, BlockPos pos, double scale)
      Mappings:
      Namespace Name Mixin selector
      official a Ldbk;a(Ljava/util/List;Lgh;D)Lcoc;
      intermediary method_38446 Lnet/minecraft/class_6580;method_38446(Ljava/util/List;Lnet/minecraft/class_2338;D)Lnet/minecraft/class_2680;
      named getStateFromList Lnet/minecraft/world/gen/stateprovider/NoiseBlockStateProvider;getStateFromList(Ljava/util/List;Lnet/minecraft/util/math/BlockPos;D)Lnet/minecraft/block/BlockState;
    • getStateAtValue

      protected BlockState getStateAtValue(List<BlockState> states, double value)
      Mappings:
      Namespace Name Mixin selector
      official a Ldbk;a(Ljava/util/List;D)Lcoc;
      intermediary method_38445 Lnet/minecraft/class_6580;method_38445(Ljava/util/List;D)Lnet/minecraft/class_2680;
      named getStateAtValue Lnet/minecraft/world/gen/stateprovider/NoiseBlockStateProvider;getStateAtValue(Ljava/util/List;D)Lnet/minecraft/block/BlockState;