Interface LevelFunction
- All Known Implementing Classes:
ArithmeticFunction,ConstantFunction,CurveFunction,DispatchableFunction,LightFunction,MercuryTemperatureFunction,TimeFunction
@ParametersAreNonnullByDefault
public interface LevelFunction
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<LevelFunction> static final com.mojang.serialization.Codec<LevelFunction> static final SimpleRegistry<net.minecraft.resources.ResourceLocation, com.mojang.serialization.MapCodec<? extends LevelFunction>> -
Method Summary
Modifier and TypeMethodDescriptiondefault LevelFunctionadd(LevelFunction other) static LevelFunctionconstant(float value) default LevelFunctiondiv(LevelFunction other) floatget(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) static LevelFunctionlight(LightFunction.Mode mode, boolean normalize) default LevelFunctionmul(LevelFunction other) static voidregister()default LevelFunctionsub(LevelFunction other) static LevelFunctiontime(boolean wrap, boolean normalize) net.minecraft.resources.ResourceLocationtype()
-
Field Details
-
REGISTRY
static final SimpleRegistry<net.minecraft.resources.ResourceLocation,com.mojang.serialization.MapCodec<? extends LevelFunction>> REGISTRY -
CODEC_NO_INLINE
-
CODEC
-
-
Method Details
-
type
net.minecraft.resources.ResourceLocation type() -
get
float get(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) -
register
@Internal static void register() -
add
-
sub
-
mul
-
div
-
constant
-
light
@Contract(value="_, _ -> new", pure=true) static LevelFunction light(LightFunction.Mode mode, boolean normalize) -
time
@Contract(value="_, _ -> new", pure=true) static LevelFunction time(boolean wrap, boolean normalize)
-