Interface ProperWaterloggedBlock

All Superinterfaces:
net.minecraft.world.level.block.BucketPickup, net.minecraftforge.common.extensions.IForgeBucketPickup, net.minecraft.world.level.block.LiquidBlockContainer, net.minecraft.world.level.block.SimpleWaterloggedBlock
All Known Implementing Classes:
AbstractShaftBlock, AbstractSimpleShaftBlock, CogWheelBlock, ControlsBlock, FakeTrackBlock, PlacardBlock, PoweredShaftBlock, SeatBlock, ShaftBlock, StandardBogeyBlock, StationBlock, TrackBlock

public interface ProperWaterloggedBlock extends net.minecraft.world.level.block.SimpleWaterloggedBlock
Waterlog checklist:
1. createBlockStateDefinition -> add WATERLOGGED
2. constructor -> default WATERLOGGED to false
3. getFluidState -> return fluidState
4. getStateForPlacement -> call withWater
5. updateShape -> call updateWater
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.world.level.block.state.properties.BooleanProperty
     
  • Method Summary

    Modifier and Type
    Method
    Description
    default net.minecraft.world.level.material.FluidState
    fluidState(net.minecraft.world.level.block.state.BlockState state)
     
    default void
    updateWater(net.minecraft.world.level.LevelAccessor level, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.BlockPos pos)
     
    default net.minecraft.world.level.block.state.BlockState
    withWater(net.minecraft.world.level.block.state.BlockState placementState, net.minecraft.world.item.context.BlockPlaceContext ctx)
     
    static net.minecraft.world.level.block.state.BlockState
    withWater(net.minecraft.world.level.LevelAccessor level, net.minecraft.world.level.block.state.BlockState placementState, net.minecraft.core.BlockPos pos)
     

    Methods inherited from interface net.minecraftforge.common.extensions.IForgeBucketPickup

    getPickupSound

    Methods inherited from interface net.minecraft.world.level.block.SimpleWaterloggedBlock

    canPlaceLiquid, getPickupSound, pickupBlock, placeLiquid
  • Field Details

    • WATERLOGGED

      static final net.minecraft.world.level.block.state.properties.BooleanProperty WATERLOGGED
  • Method Details

    • fluidState

      default net.minecraft.world.level.material.FluidState fluidState(net.minecraft.world.level.block.state.BlockState state)
    • updateWater

      default void updateWater(net.minecraft.world.level.LevelAccessor level, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.BlockPos pos)
    • withWater

      default net.minecraft.world.level.block.state.BlockState withWater(net.minecraft.world.level.block.state.BlockState placementState, net.minecraft.world.item.context.BlockPlaceContext ctx)
    • withWater

      static net.minecraft.world.level.block.state.BlockState withWater(net.minecraft.world.level.LevelAccessor level, net.minecraft.world.level.block.state.BlockState placementState, net.minecraft.core.BlockPos pos)