Class SlabBlock

All Implemented Interfaces:
FluidDrainable, FluidFillable, Waterloggable, ItemConvertible
Direct Known Subclasses:
OxidizableSlabBlock

public class SlabBlock extends Block implements Waterloggable
Mappings:
Namespace Name
official cfv
intermediary net/minecraft/class_2482
named net/minecraft/block/SlabBlock
  • Field Details

    • TYPE

      public static final EnumProperty<SlabType> TYPE
      Mappings:
      Namespace Name Mixin selector
      official a Lcfv;a:Lclq;
      intermediary field_11501 Lnet/minecraft/class_2482;field_11501:Lnet/minecraft/class_2754;
      named TYPE Lnet/minecraft/block/SlabBlock;TYPE:Lnet/minecraft/state/property/EnumProperty;
    • WATERLOGGED

      public static final BooleanProperty WATERLOGGED
      Mappings:
      Namespace Name Mixin selector
      official b Lcfv;b:Lclj;
      intermediary field_11502 Lnet/minecraft/class_2482;field_11502:Lnet/minecraft/class_2746;
      named WATERLOGGED Lnet/minecraft/block/SlabBlock;WATERLOGGED:Lnet/minecraft/state/property/BooleanProperty;
    • BOTTOM_SHAPE

      protected static final VoxelShape BOTTOM_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official c Lcfv;c:Ldnt;
      intermediary field_11500 Lnet/minecraft/class_2482;field_11500:Lnet/minecraft/class_265;
      named BOTTOM_SHAPE Lnet/minecraft/block/SlabBlock;BOTTOM_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • TOP_SHAPE

      protected static final VoxelShape TOP_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official d Lcfv;d:Ldnt;
      intermediary field_11499 Lnet/minecraft/class_2482;field_11499:Lnet/minecraft/class_265;
      named TOP_SHAPE Lnet/minecraft/block/SlabBlock;TOP_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
  • Constructor Details

    • SlabBlock

      public SlabBlock(AbstractBlock.Settings settings)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lckr;<init>(Lckr$c;)V
      intermediary <init> Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)V
      named <init> Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)V
  • Method Details

    • hasSidedTransparency

      public boolean hasSidedTransparency(BlockState state)
      Overrides:
      hasSidedTransparency in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official g_ Lckr;g_(Lcks;)Z
      intermediary method_9526 Lnet/minecraft/class_4970;method_9526(Lnet/minecraft/class_2680;)Z
      named hasSidedTransparency Lnet/minecraft/block/AbstractBlock;hasSidedTransparency(Lnet/minecraft/block/BlockState;)Z
    • appendProperties

      protected void appendProperties(StateManager.Builder<Block,​BlockState> builder)
      Overrides:
      appendProperties in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lbzo;a(Lckt$a;)V
      intermediary method_9515 Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)V
      named appendProperties Lnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V
    • getOutlineShape

      public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
      Overrides:
      getOutlineShape in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lckr;a(Lcks;Lbvt;Lgg;Ldnf;)Ldnt;
      intermediary method_9530 Lnet/minecraft/class_4970;method_9530(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_3726;)Lnet/minecraft/class_265;
      named getOutlineShape Lnet/minecraft/block/AbstractBlock;getOutlineShape(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/ShapeContext;)Lnet/minecraft/util/shape/VoxelShape;
    • getPlacementState

      @Nullable public @Nullable BlockState getPlacementState(ItemPlacementContext ctx)
      Overrides:
      getPlacementState in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lbzo;a(Lbsp;)Lcks;
      intermediary method_9605 Lnet/minecraft/class_2248;method_9605(Lnet/minecraft/class_1750;)Lnet/minecraft/class_2680;
      named getPlacementState Lnet/minecraft/block/Block;getPlacementState(Lnet/minecraft/item/ItemPlacementContext;)Lnet/minecraft/block/BlockState;
    • canReplace

      public boolean canReplace(BlockState state, ItemPlacementContext context)
      Overrides:
      canReplace in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lckr;a(Lcks;Lbsp;)Z
      intermediary method_9616 Lnet/minecraft/class_4970;method_9616(Lnet/minecraft/class_2680;Lnet/minecraft/class_1750;)Z
      named canReplace Lnet/minecraft/block/AbstractBlock;canReplace(Lnet/minecraft/block/BlockState;Lnet/minecraft/item/ItemPlacementContext;)Z
    • getFluidState

      public FluidState getFluidState(BlockState state)
      Overrides:
      getFluidState in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official c_ Lckr;c_(Lcks;)Ldes;
      intermediary method_9545 Lnet/minecraft/class_4970;method_9545(Lnet/minecraft/class_2680;)Lnet/minecraft/class_3610;
      named getFluidState Lnet/minecraft/block/AbstractBlock;getFluidState(Lnet/minecraft/block/BlockState;)Lnet/minecraft/fluid/FluidState;
    • tryFillWithFluid

      public boolean tryFillWithFluid(WorldAccess world, BlockPos pos, BlockState state, FluidState fluidState)
      Specified by:
      tryFillWithFluid in interface FluidFillable
      Specified by:
      tryFillWithFluid in interface Waterloggable
      Mappings:
      Namespace Name Mixin selector
      official a Lcdt;a(Lbwq;Lgg;Lcks;Ldes;)Z
      intermediary method_10311 Lnet/minecraft/class_2402;method_10311(Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_3610;)Z
      named tryFillWithFluid Lnet/minecraft/block/FluidFillable;tryFillWithFluid(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/fluid/FluidState;)Z
    • canFillWithFluid

      public boolean canFillWithFluid(BlockView world, BlockPos pos, BlockState state, Fluid fluid)
      Specified by:
      canFillWithFluid in interface FluidFillable
      Specified by:
      canFillWithFluid in interface Waterloggable
      Mappings:
      Namespace Name Mixin selector
      official a Lcdt;a(Lbvt;Lgg;Lcks;Lder;)Z
      intermediary method_10310 Lnet/minecraft/class_2402;method_10310(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_3611;)Z
      named canFillWithFluid Lnet/minecraft/block/FluidFillable;canFillWithFluid(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/fluid/Fluid;)Z
    • getStateForNeighborUpdate

      public BlockState getStateForNeighborUpdate(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos)
      Gets the possibly updated block state of this block when a neighboring block is updated.
      Overrides:
      getStateForNeighborUpdate in class AbstractBlock
      Parameters:
      state - the state of this block
      direction - the direction from this block to the neighbor
      neighborState - the state of the updated neighbor block
      world - the world
      pos - the position of this block
      neighborPos - the position of the neighbor block
      Returns:
      the new state of this block
      Mappings:
      Namespace Name Mixin selector
      official a Lckr;a(Lcks;Lgl;Lcks;Lbwq;Lgg;Lgg;)Lcks;
      intermediary method_9559 Lnet/minecraft/class_4970;method_9559(Lnet/minecraft/class_2680;Lnet/minecraft/class_2350;Lnet/minecraft/class_2680;Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;
      named getStateForNeighborUpdate Lnet/minecraft/block/AbstractBlock;getStateForNeighborUpdate(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
    • canPathfindThrough

      public boolean canPathfindThrough(BlockState state, BlockView world, BlockPos pos, NavigationType type)
      Overrides:
      canPathfindThrough in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lckr;a(Lcks;Lbvt;Lgg;Ldhb;)Z
      intermediary method_9516 Lnet/minecraft/class_4970;method_9516(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_10;)Z
      named canPathfindThrough Lnet/minecraft/block/AbstractBlock;canPathfindThrough(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/ai/pathing/NavigationType;)Z