Class SnowloggingUtils

java.lang.Object
net.frozenblock.wilderwild.block.impl.SnowloggingUtils

public class SnowloggingUtils extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final net.minecraft.world.level.block.state.properties.IntegerProperty
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    canBeReplacedWithSnow(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.item.context.BlockPlaceContext context)
     
    static boolean
    canSnowlog(@Nullable net.minecraft.world.level.block.state.BlockState state)
     
    static float
    getSnowDestroySpeed(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.BlockState
    getSnowEquivalent(net.minecraft.world.level.block.state.BlockState state)
     
    static int
    getSnowLayers(@NotNull net.minecraft.world.level.block.state.BlockState state)
     
    static net.minecraft.world.level.block.state.BlockState
    getSnowPlacementState(net.minecraft.world.level.block.state.BlockState state, @NotNull net.minecraft.world.item.context.BlockPlaceContext context)
     
    static @Nullable net.minecraft.world.level.block.state.BlockState
    getStateWithoutSnow(@Nullable net.minecraft.world.level.block.state.BlockState state)
     
    static boolean
    isItemSnow(@Nullable net.minecraft.world.item.ItemStack stack)
     
    static boolean
    isOriginalBlockCovered(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos)
     
    static boolean
    isSnowlogged(@Nullable net.minecraft.world.level.block.state.BlockState state)
     
    static void
    onRandomTick(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.BlockState
    onUpdateShape(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.LevelAccessor level, net.minecraft.core.BlockPos pos)
     
    static boolean
    supportsSnowlogging(@Nullable net.minecraft.world.level.block.state.BlockState state)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)