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
FieldsModifier and TypeFieldDescription@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> static final List<OptimizedBiomeTagConditionSource> -
Constructor Summary
ConstructorsConstructorDescriptionOptimizedBiomeTagConditionSource(net.minecraft.tags.TagKey<net.minecraft.world.level.biome.Biome> biomeTagKey) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.level.levelgen.SurfaceRules.Conditionapply(net.minecraft.world.level.levelgen.SurfaceRules.Context context) net.minecraft.util.KeyDispatchDataCodec<? extends net.minecraft.world.level.levelgen.SurfaceRules.ConditionSource> codec()booleaninthashCode()voidoptimize(@NotNull net.minecraft.core.Registry<net.minecraft.world.level.biome.Biome> biomeRegistry) static voidoptimizeAll(@NotNull net.minecraft.core.Registry<net.minecraft.world.level.biome.Biome> biomeRegistry) @NotNull StringtoString()
-
Field Details
-
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
-
-
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:
codecin interfacenet.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) -
equals
-
hashCode
public int hashCode() -
toString
-