Class BambooBlock

All Implemented Interfaces:
Fertilizable, ItemConvertible

public class BambooBlock extends Block implements Fertilizable
Mappings:
Namespace Name
official ccc
intermediary net/minecraft/class_2211
named net/minecraft/block/BambooBlock
  • Field Details

    • field_30997

      protected static final float field_30997
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lccc;a:F
      intermediary field_30997 Lnet/minecraft/class_2211;field_30997:F
      named field_30997 Lnet/minecraft/block/BambooBlock;field_30997:F
    • field_30998

      protected static final float field_30998
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lccc;b:F
      intermediary field_30998 Lnet/minecraft/class_2211;field_30998:F
      named field_30998 Lnet/minecraft/block/BambooBlock;field_30998:F
    • field_30999

      protected static final float field_30999
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Lccc;c:F
      intermediary field_30999 Lnet/minecraft/class_2211;field_30999:F
      named field_30999 Lnet/minecraft/block/BambooBlock;field_30999:F
    • SMALL_LEAVES_SHAPE

      protected static final VoxelShape SMALL_LEAVES_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official d Lccc;d:Ldpf;
      intermediary field_9912 Lnet/minecraft/class_2211;field_9912:Lnet/minecraft/class_265;
      named SMALL_LEAVES_SHAPE Lnet/minecraft/block/BambooBlock;SMALL_LEAVES_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • LARGE_LEAVES_SHAPE

      protected static final VoxelShape LARGE_LEAVES_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official e Lccc;e:Ldpf;
      intermediary field_9915 Lnet/minecraft/class_2211;field_9915:Lnet/minecraft/class_265;
      named LARGE_LEAVES_SHAPE Lnet/minecraft/block/BambooBlock;LARGE_LEAVES_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • NO_LEAVES_SHAPE

      protected static final VoxelShape NO_LEAVES_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official f Lccc;f:Ldpf;
      intermediary field_9913 Lnet/minecraft/class_2211;field_9913:Lnet/minecraft/class_265;
      named NO_LEAVES_SHAPE Lnet/minecraft/block/BambooBlock;NO_LEAVES_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • AGE

      public static final IntProperty AGE
      Mappings:
      Namespace Name Mixin selector
      official g Lccc;g:Lcpd;
      intermediary field_9914 Lnet/minecraft/class_2211;field_9914:Lnet/minecraft/class_2758;
      named AGE Lnet/minecraft/block/BambooBlock;AGE:Lnet/minecraft/state/property/IntProperty;
    • LEAVES

      public static final EnumProperty<BambooLeaves> LEAVES
      Mappings:
      Namespace Name Mixin selector
      official h Lccc;h:Lcpb;
      intermediary field_9917 Lnet/minecraft/class_2211;field_9917:Lnet/minecraft/class_2754;
      named LEAVES Lnet/minecraft/block/BambooBlock;LEAVES:Lnet/minecraft/state/property/EnumProperty;
    • STAGE

      public static final IntProperty STAGE
      Mappings:
      Namespace Name Mixin selector
      official i Lccc;i:Lcpd;
      intermediary field_9916 Lnet/minecraft/class_2211;field_9916:Lnet/minecraft/class_2758;
      named STAGE Lnet/minecraft/block/BambooBlock;STAGE:Lnet/minecraft/state/property/IntProperty;
    • field_31000

      public static final int field_31000
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official j Lccc;j:I
      intermediary field_31000 Lnet/minecraft/class_2211;field_31000:I
      named field_31000 Lnet/minecraft/block/BambooBlock;field_31000:I
    • field_31001

      public static final int field_31001
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official k Lccc;k:I
      intermediary field_31001 Lnet/minecraft/class_2211;field_31001:I
      named field_31001 Lnet/minecraft/block/BambooBlock;field_31001:I
    • field_31002

      public static final int field_31002
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official l Lccc;l:I
      intermediary field_31002 Lnet/minecraft/class_2211;field_31002:I
      named field_31002 Lnet/minecraft/block/BambooBlock;field_31002:I
    • field_31003

      public static final int field_31003
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official m Lccc;m:I
      intermediary field_31003 Lnet/minecraft/class_2211;field_31003:I
      named field_31003 Lnet/minecraft/block/BambooBlock;field_31003:I
    • field_31004

      public static final int field_31004
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official n Lccc;n:I
      intermediary field_31004 Lnet/minecraft/class_2211;field_31004:I
      named field_31004 Lnet/minecraft/block/BambooBlock;field_31004:I
  • Constructor Details

    • BambooBlock

      public BambooBlock(AbstractBlock.Settings settings)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcob;<init>(Lcob$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

    • appendProperties

      protected void appendProperties(StateManager.Builder<Block,BlockState> builder)
      Overrides:
      appendProperties in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lccy;a(Lcod$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
    • getOffsetType

      public AbstractBlock.OffsetType getOffsetType()
      Overrides:
      getOffsetType in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official T_ Lcob;T_()Lcob$b;
      intermediary method_16841 Lnet/minecraft/class_4970;method_16841()Lnet/minecraft/class_4970$class_2250;
      named getOffsetType Lnet/minecraft/block/AbstractBlock;getOffsetType()Lnet/minecraft/block/AbstractBlock$OffsetType;
    • isTranslucent

      public boolean isTranslucent(BlockState state, BlockView world, BlockPos pos)
      Overrides:
      isTranslucent in class Block
      Mappings:
      Namespace Name Mixin selector
      official c Lccy;c(Lcoc;Lbzj;Lgh;)Z
      intermediary method_9579 Lnet/minecraft/class_2248;method_9579(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Z
      named isTranslucent Lnet/minecraft/block/Block;isTranslucent(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Z
    • getOutlineShape

      public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
      Overrides:
      getOutlineShape in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcob;a(Lcoc;Lbzj;Lgh;Ldor;)Ldpf;
      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;
    • canPathfindThrough

      public boolean canPathfindThrough(BlockState state, BlockView world, BlockPos pos, NavigationType type)
      Overrides:
      canPathfindThrough in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcob;a(Lcoc;Lbzj;Lgh;Ldim;)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
    • getCollisionShape

      public VoxelShape getCollisionShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
      Overrides:
      getCollisionShape in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official c Lcob;c(Lcoc;Lbzj;Lgh;Ldor;)Ldpf;
      intermediary method_9549 Lnet/minecraft/class_4970;method_9549(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_3726;)Lnet/minecraft/class_265;
      named getCollisionShape Lnet/minecraft/block/AbstractBlock;getCollisionShape(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/ShapeContext;)Lnet/minecraft/util/shape/VoxelShape;
    • isShapeFullCube

      public boolean isShapeFullCube(BlockState state, BlockView world, BlockPos pos)
      Overrides:
      isShapeFullCube in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a_ Lcob;a_(Lcoc;Lbzj;Lgh;)Z
      intermediary method_37403 Lnet/minecraft/class_4970;method_37403(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Z
      named isShapeFullCube Lnet/minecraft/block/AbstractBlock;isShapeFullCube(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Z
    • getPlacementState

      @Nullable public @Nullable BlockState getPlacementState(ItemPlacementContext ctx)
      Overrides:
      getPlacementState in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lccy;a(Lbwe;)Lcoc;
      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;
    • scheduledTick

      public void scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random)
      Overrides:
      scheduledTick in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcob;a(Lcoc;Ladi;Lgh;Ljava/util/Random;)V
      intermediary method_9588 Lnet/minecraft/class_4970;method_9588(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Ljava/util/Random;)V
      named scheduledTick Lnet/minecraft/block/AbstractBlock;scheduledTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)V
    • hasRandomTicks

      public boolean hasRandomTicks(BlockState state)
      Overrides:
      hasRandomTicks in class Block
      Mappings:
      Namespace Name Mixin selector
      official e_ Lccy;e_(Lcoc;)Z
      intermediary method_9542 Lnet/minecraft/class_2248;method_9542(Lnet/minecraft/class_2680;)Z
      named hasRandomTicks Lnet/minecraft/block/Block;hasRandomTicks(Lnet/minecraft/block/BlockState;)Z
    • randomTick

      public void randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random)
      Overrides:
      randomTick in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official b Lcob;b(Lcoc;Ladi;Lgh;Ljava/util/Random;)V
      intermediary method_9514 Lnet/minecraft/class_4970;method_9514(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Ljava/util/Random;)V
      named randomTick Lnet/minecraft/block/AbstractBlock;randomTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)V
    • canPlaceAt

      public boolean canPlaceAt(BlockState state, WorldView world, BlockPos pos)
      Overrides:
      canPlaceAt in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcob;a(Lcoc;Lcag;Lgh;)Z
      intermediary method_9558 Lnet/minecraft/class_4970;method_9558(Lnet/minecraft/class_2680;Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;)Z
      named canPlaceAt Lnet/minecraft/block/AbstractBlock;canPlaceAt(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)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 Lcob;a(Lcoc;Lgm;Lcoc;Lcae;Lgh;Lgh;)Lcoc;
      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;
    • isFertilizable

      public boolean isFertilizable(BlockView world, BlockPos pos, BlockState state, boolean isClient)
      Specified by:
      isFertilizable in interface Fertilizable
      Mappings:
      Namespace Name Mixin selector
      official a Lcda;a(Lbzj;Lgh;Lcoc;Z)Z
      intermediary method_9651 Lnet/minecraft/class_2256;method_9651(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Z)Z
      named isFertilizable Lnet/minecraft/block/Fertilizable;isFertilizable(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Z)Z
    • canGrow

      public boolean canGrow(World world, Random random, BlockPos pos, BlockState state)
      Specified by:
      canGrow in interface Fertilizable
      Mappings:
      Namespace Name Mixin selector
      official a Lcda;a(Lcad;Ljava/util/Random;Lgh;Lcoc;)Z
      intermediary method_9650 Lnet/minecraft/class_2256;method_9650(Lnet/minecraft/class_1937;Ljava/util/Random;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Z
      named canGrow Lnet/minecraft/block/Fertilizable;canGrow(Lnet/minecraft/world/World;Ljava/util/Random;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Z
    • grow

      public void grow(ServerWorld world, Random random, BlockPos pos, BlockState state)
      Specified by:
      grow in interface Fertilizable
      Mappings:
      Namespace Name Mixin selector
      official a Lcda;a(Ladi;Ljava/util/Random;Lgh;Lcoc;)V
      intermediary method_9652 Lnet/minecraft/class_2256;method_9652(Lnet/minecraft/class_3218;Ljava/util/Random;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
      named grow Lnet/minecraft/block/Fertilizable;grow(Lnet/minecraft/server/world/ServerWorld;Ljava/util/Random;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
    • calcBlockBreakingDelta

      public float calcBlockBreakingDelta(BlockState state, PlayerEntity player, BlockView world, BlockPos pos)
      Overrides:
      calcBlockBreakingDelta in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcob;a(Lcoc;Lbnr;Lbzj;Lgh;)F
      intermediary method_9594 Lnet/minecraft/class_4970;method_9594(Lnet/minecraft/class_2680;Lnet/minecraft/class_1657;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)F
      named calcBlockBreakingDelta Lnet/minecraft/block/AbstractBlock;calcBlockBreakingDelta(Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)F
    • updateLeaves

      protected void updateLeaves(BlockState state, World world, BlockPos pos, Random random, int height)
      Mappings:
      Namespace Name Mixin selector
      official a Lccc;a(Lcoc;Lcad;Lgh;Ljava/util/Random;I)V
      intermediary method_9385 Lnet/minecraft/class_2211;method_9385(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Ljava/util/Random;I)V
      named updateLeaves Lnet/minecraft/block/BambooBlock;updateLeaves(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;I)V
    • countBambooAbove

      protected int countBambooAbove(BlockView world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lccc;a(Lbzj;Lgh;)I
      intermediary method_9387 Lnet/minecraft/class_2211;method_9387(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)I
      named countBambooAbove Lnet/minecraft/block/BambooBlock;countBambooAbove(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)I
    • countBambooBelow

      protected int countBambooBelow(BlockView world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official b Lccc;b(Lbzj;Lgh;)I
      intermediary method_9386 Lnet/minecraft/class_2211;method_9386(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)I
      named countBambooBelow Lnet/minecraft/block/BambooBlock;countBambooBelow(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)I