Class ConfigIntProvider
java.lang.Object
net.minecraft.util.valueproviders.IntProvider
de.teamlapen.werewolves.world.gen.ConfigIntProvider
public class ConfigIntProvider
extends net.minecraft.util.valueproviders.IntProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<ConfigIntProvider> Fields inherited from class net.minecraft.util.valueproviders.IntProvider
NON_NEGATIVE_CODEC, POSITIVE_CODEC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintint@NotNull net.minecraft.util.valueproviders.IntProviderType<?> getType()static ConfigIntProviderof(CommonConfig.IntValueExt supplier) intsample(@NotNull net.minecraft.util.RandomSource randomSource) Methods inherited from class net.minecraft.util.valueproviders.IntProvider
codec, validateCodec
-
Field Details
-
CODEC
-
-
Constructor Details
-
ConfigIntProvider
-
-
Method Details
-
of
-
sample
public int sample(@NotNull @NotNull net.minecraft.util.RandomSource randomSource) - Specified by:
samplein classnet.minecraft.util.valueproviders.IntProvider
-
getMinValue
public int getMinValue()- Specified by:
getMinValuein classnet.minecraft.util.valueproviders.IntProvider
-
getMaxValue
public int getMaxValue()- Specified by:
getMaxValuein classnet.minecraft.util.valueproviders.IntProvider
-
getType
@NotNull public @NotNull net.minecraft.util.valueproviders.IntProviderType<?> getType()- Specified by:
getTypein classnet.minecraft.util.valueproviders.IntProvider
-