Class SnowloggingUtils
java.lang.Object
net.frozenblock.wilderwild.block.impl.SnowloggingUtils
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final net.minecraft.world.level.block.state.properties.IntegerProperty -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancanBeReplacedWithSnow(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.item.context.BlockPlaceContext context) static booleancanSnowlog(@Nullable net.minecraft.world.level.block.state.BlockState state) static floatgetSnowDestroySpeed(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos) static @NotNull net.minecraft.world.level.block.state.BlockStategetSnowEquivalent(net.minecraft.world.level.block.state.BlockState state) static intgetSnowLayers(@NotNull net.minecraft.world.level.block.state.BlockState state) static net.minecraft.world.level.block.state.BlockStategetSnowPlacementState(net.minecraft.world.level.block.state.BlockState state, @NotNull net.minecraft.world.item.context.BlockPlaceContext context) static @Nullable net.minecraft.world.level.block.state.BlockStategetStateWithoutSnow(@Nullable net.minecraft.world.level.block.state.BlockState state) static booleanisItemSnow(@Nullable net.minecraft.world.item.ItemStack stack) static booleanisOriginalBlockCovered(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos) static booleanisSnowlogged(@Nullable net.minecraft.world.level.block.state.BlockState state) static voidonRandomTick(net.minecraft.world.level.block.state.BlockState state, net.minecraft.server.level.ServerLevel level, net.minecraft.core.BlockPos pos) static @Nullable net.minecraft.world.level.block.state.BlockStateonUpdateShape(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.LevelAccessor level, net.minecraft.core.BlockPos pos) static booleansupportsSnowlogging(@Nullable net.minecraft.world.level.block.state.BlockState state)
-
Field Details
-
SNOW_LAYERS
public static final net.minecraft.world.level.block.state.properties.IntegerProperty SNOW_LAYERS -
MAX_LAYERS
public static final int MAX_LAYERS- See Also:
-
-
Constructor Details
-
SnowloggingUtils
public SnowloggingUtils()
-
-
Method Details
-
supportsSnowlogging
public static boolean supportsSnowlogging(@Nullable @Nullable net.minecraft.world.level.block.state.BlockState state) -
canSnowlog
public static boolean canSnowlog(@Nullable @Nullable net.minecraft.world.level.block.state.BlockState state) -
getSnowLayers
public static int getSnowLayers(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState state) -
isSnowlogged
public static boolean isSnowlogged(@Nullable @Nullable net.minecraft.world.level.block.state.BlockState state) -
getSnowEquivalent
@NotNull public static @NotNull net.minecraft.world.level.block.state.BlockState getSnowEquivalent(net.minecraft.world.level.block.state.BlockState state) -
getStateWithoutSnow
@Nullable public static @Nullable net.minecraft.world.level.block.state.BlockState getStateWithoutSnow(@Nullable @Nullable net.minecraft.world.level.block.state.BlockState state) -
isItemSnow
public static boolean isItemSnow(@Nullable @Nullable net.minecraft.world.item.ItemStack stack) -
canBeReplacedWithSnow
public static boolean canBeReplacedWithSnow(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.item.context.BlockPlaceContext context) -
onUpdateShape
@Nullable public static @Nullable net.minecraft.world.level.block.state.BlockState onUpdateShape(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.LevelAccessor level, net.minecraft.core.BlockPos pos) -
getSnowPlacementState
public static net.minecraft.world.level.block.state.BlockState getSnowPlacementState(net.minecraft.world.level.block.state.BlockState state, @NotNull @NotNull net.minecraft.world.item.context.BlockPlaceContext context) -
getSnowDestroySpeed
public static float getSnowDestroySpeed(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos) -
onRandomTick
public static void onRandomTick(net.minecraft.world.level.block.state.BlockState state, net.minecraft.server.level.ServerLevel level, net.minecraft.core.BlockPos pos) -
isOriginalBlockCovered
public static boolean isOriginalBlockCovered(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos)
-