Class OptimizedBiomeTagConditionSource

java.lang.Object
net.frozenblock.lib.worldgen.surface.impl.OptimizedBiomeTagConditionSource
All Implemented Interfaces:
Function<net.minecraft.world.level.levelgen.SurfaceRules.Context,net.minecraft.world.level.levelgen.SurfaceRules.Condition>, net.minecraft.world.level.levelgen.SurfaceRules.ConditionSource

public final class OptimizedBiomeTagConditionSource extends Object implements net.minecraft.world.level.levelgen.SurfaceRules.ConditionSource
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    @Nullable Predicate<net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome>>
     
    @Nullable List<net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome>>
     
    final net.minecraft.tags.TagKey<net.minecraft.world.level.biome.Biome>
     
    static final net.minecraft.util.KeyDispatchDataCodec<OptimizedBiomeTagConditionSource>
     
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    OptimizedBiomeTagConditionSource(net.minecraft.tags.TagKey<net.minecraft.world.level.biome.Biome> biomeTagKey)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.level.levelgen.SurfaceRules.Condition
    apply(net.minecraft.world.level.levelgen.SurfaceRules.Context context)
     
    net.minecraft.util.KeyDispatchDataCodec<? extends net.minecraft.world.level.levelgen.SurfaceRules.ConditionSource>
     
    boolean
    equals(Object object)
     
    int
     
    void
    optimize(@NotNull net.minecraft.core.Registry<net.minecraft.world.level.biome.Biome> biomeRegistry)
     
    static void
    optimizeAll(@NotNull net.minecraft.core.Registry<net.minecraft.world.level.biome.Biome> biomeRegistry)
     
    @NotNull String
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.util.function.Function

    andThen, compose
  • Field Details

    • CODEC

      public static final net.minecraft.util.KeyDispatchDataCodec<OptimizedBiomeTagConditionSource> CODEC
    • biomeTagKey

      public final net.minecraft.tags.TagKey<net.minecraft.world.level.biome.Biome> biomeTagKey
    • biomes

      @Nullable public @Nullable List<net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome>> biomes
    • biomeNameTest

      @Nullable public @Nullable Predicate<net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome>> biomeNameTest
    • INSTANCES

      public static final List<OptimizedBiomeTagConditionSource> INSTANCES
  • Constructor Details

    • OptimizedBiomeTagConditionSource

      public OptimizedBiomeTagConditionSource(net.minecraft.tags.TagKey<net.minecraft.world.level.biome.Biome> biomeTagKey)
  • Method Details

    • optimizeAll

      public static void optimizeAll(@NotNull @NotNull net.minecraft.core.Registry<net.minecraft.world.level.biome.Biome> biomeRegistry)
    • optimize

      public void optimize(@NotNull @NotNull net.minecraft.core.Registry<net.minecraft.world.level.biome.Biome> biomeRegistry)
    • codec

      public net.minecraft.util.KeyDispatchDataCodec<? extends net.minecraft.world.level.levelgen.SurfaceRules.ConditionSource> codec()
      Specified by:
      codec in interface net.minecraft.world.level.levelgen.SurfaceRules.ConditionSource
    • apply

      @NotNull public net.minecraft.world.level.levelgen.SurfaceRules.Condition apply(@NotNull net.minecraft.world.level.levelgen.SurfaceRules.Context context)
      Specified by:
      apply in interface Function<net.minecraft.world.level.levelgen.SurfaceRules.Context,net.minecraft.world.level.levelgen.SurfaceRules.Condition>
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      @NotNull public @NotNull String toString()
      Overrides:
      toString in class Object