Package net.minecraft.block
Class BambooBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.BambooBlock
- All Implemented Interfaces:
Fertilizable
,ItemConvertible
- Mappings:
Namespace Name official ccc
intermediary net/minecraft/class_2211
named net/minecraft/block/BambooBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.NeighborGroup
Nested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final IntProperty
protected static final float
protected static final float
protected static final float
static final int
static final int
static final int
static final int
static final int
protected static final VoxelShape
static final EnumProperty<BambooLeaves>
protected static final VoxelShape
protected static final VoxelShape
static final IntProperty
Fields inherited from class net.minecraft.block.Block
field_31022, field_31023, field_31024, field_31025, field_31035, FORCE_STATE, LOGGER, MOVED, NO_REDRAW, NOTIFY_ALL, NOTIFY_LISTENERS, NOTIFY_NEIGHBORS, REDRAW_ON_MAIN_THREAD, SKIP_DROPS, SKIP_LIGHTING_UPDATES, STATE_IDS, stateManager
Fields inherited from class net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
appendProperties
(StateManager.Builder<Block, BlockState> builder) float
calcBlockBreakingDelta
(BlockState state, PlayerEntity player, BlockView world, BlockPos pos) boolean
canGrow
(World world, Random random, BlockPos pos, BlockState state) boolean
canPathfindThrough
(BlockState state, BlockView world, BlockPos pos, NavigationType type) boolean
canPlaceAt
(BlockState state, WorldView world, BlockPos pos) protected int
countBambooAbove
(BlockView world, BlockPos pos) protected int
countBambooBelow
(BlockView world, BlockPos pos) getCollisionShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) 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.void
grow
(ServerWorld world, Random random, BlockPos pos, BlockState state) boolean
hasRandomTicks
(BlockState state) boolean
isFertilizable
(BlockView world, BlockPos pos, BlockState state, boolean isClient) boolean
isShapeFullCube
(BlockState state, BlockView world, BlockPos pos) boolean
isTranslucent
(BlockState state, BlockView world, BlockPos pos) void
randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) void
scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) protected void
updateLeaves
(BlockState state, World world, BlockPos pos, Random random, int height) Methods inherited from class net.minecraft.block.Block
afterBreak, appendStacks, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropStack, dropStack, dropStacks, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getRawIdFromState, getShapesForStates, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getStateWithProperties, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasTopRim, isFaceFullSquare, isShapeFullCube, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, spawnBreakParticles, toString
Methods inherited from class net.minecraft.block.AbstractBlock
canBucketPlace, canReplace, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getHardness, getLootTableId, getMaxHorizontalModelOffset, getOpacity, getPistonBehavior, getRaycastShape, getRenderingSeed, getRenderType, getSidesShape, getStrongRedstonePower, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasComparatorOutput, hasSidedTransparency, isSideInvisible, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, prepare, rotate
-
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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- Overrides:
appendProperties
in classBlock
- 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
- Overrides:
getOffsetType
in classAbstractBlock
- 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
- Overrides:
isTranslucent
in classBlock
- 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 classAbstractBlock
- 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;
-
getCollisionShape
public VoxelShape getCollisionShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) - Overrides:
getCollisionShape
in classAbstractBlock
- 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
- Overrides:
isShapeFullCube
in classAbstractBlock
- 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
- Overrides:
getPlacementState
in classBlock
- 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
- Overrides:
scheduledTick
in classAbstractBlock
- 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
- Overrides:
hasRandomTicks
in classBlock
- 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
- Overrides:
randomTick
in classAbstractBlock
- 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
- Overrides:
canPlaceAt
in classAbstractBlock
- 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 classAbstractBlock
- Parameters:
state
- the state of this blockdirection
- the direction from this block to the neighborneighborState
- the state of the updated neighbor blockworld
- the worldpos
- the position of this blockneighborPos
- 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
- Specified by:
isFertilizable
in interfaceFertilizable
- 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
- Specified by:
canGrow
in interfaceFertilizable
- 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
- Specified by:
grow
in interfaceFertilizable
- 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 classAbstractBlock
- 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
- 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
- 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
- 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
-