Package net.minecraft.block
Class BigDripleafBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.HorizontalFacingBlock
net.minecraft.block.BigDripleafBlock
- All Implemented Interfaces:
Fertilizable,FluidDrainable,FluidFillable,Waterloggable,ItemConvertible
public class BigDripleafBlock extends HorizontalFacingBlock implements Fertilizable, Waterloggable
- Mappings:
Namespace Name official bwrintermediary net/minecraft/class_5801named net/minecraft/block/BigDripleafBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.NeighborGroupNested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A> -
Field Summary
Fields Modifier and Type Field Description private static Object2IntMap<Tilt>NEXT_TILT_DELAYSprivate Map<BlockState,VoxelShape>shapesprivate static Map<Direction,VoxelShape>SHAPES_FOR_DIRECTIONprivate static Map<Tilt,VoxelShape>SHAPES_FOR_TILTprivate static EnumProperty<Tilt>TILTprivate static BoxUNTILTED_SHAPEprivate static BooleanPropertyWATERLOGGEDFields inherited from class net.minecraft.block.HorizontalFacingBlock
FACINGFields inherited from class net.minecraft.block.Block
LOGGER, STATE_IDS, stateManagerFields inherited from class net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier -
Constructor Summary
Constructors Modifier Constructor Description protectedBigDripleafBlock(AbstractBlock.Settings settings) -
Method Summary
Modifier and Type Method Description protected voidappendProperties(StateManager.Builder<Block,BlockState> builder)booleancanGrow(World world, Random random, BlockPos pos, BlockState state)booleancanPlaceAt(BlockState state, WorldView world, BlockPos pos)private voidchangeTilt(BlockState state, World world, BlockPos pos, Tilt tilt)private voidchangeTilt(BlockState state, World world, BlockPos pos, Tilt tilt, SoundEvent sound)VoxelShapegetCollisionShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)FluidStategetFluidState(BlockState state)VoxelShapegetOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)BlockStategetPlacementState(ItemPlacementContext ctx)protected static VoxelShapegetShapeForState(BlockState state)private static VoxelShapegetShapeForStateDirection(BlockState state)private static VoxelShapegetShapeForStateTilt(BlockState state)BlockStategetStateForNeighborUpdate(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.voidgrow(ServerWorld world, Random random, BlockPos pos, BlockState state)protected static voidgrow(World world, Random random, BlockPos pos)private static booleanisEntityAbove(BlockPos pos, Entity entity)booleanisFertilizable(BlockView world, BlockPos pos, BlockState state, boolean isClient)voidonEntityCollision(BlockState state, World world, BlockPos pos, Entity entity)voidonProjectileHit(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile)private voidplayTiltSound(World world, BlockPos pos, SoundEvent sound)private voidresetTilt(BlockState state, World world, BlockPos pos)voidscheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random)private static booleanshouldEntityTilt(BlockPos pos, Entity entity, boolean bool)private static booleanshouldTilt(World world, BlockPos pos, boolean bool)Methods inherited from class net.minecraft.block.HorizontalFacingBlock
mirror, rotateMethods inherited from class net.minecraft.block.Block
addStacksForDisplay, afterBreak, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getRawIdFromState, getShapesForStates, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasRandomTicks, hasTopRim, isFaceFullSquare, isShapeFullCube, isTranslucent, method_33614, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, toStringMethods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canReplace, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getLootTableId, getMaxModelOffset, getOffsetType, getOpacity, getPistonBehavior, getRaycastShape, getRenderingSeed, getRenderType, getSidesShape, getStrongRedstonePower, getVisualShape, getWeakRedstonePower, hasComparatorOutput, hasSidedTransparency, isSideInvisible, neighborUpdate, onBlockAdded, onBlockBreakStart, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, prepare, randomTickMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.block.Waterloggable
canFillWithFluid, getBucketFillSound, tryDrainFluid, tryFillWithFluid
-
Field Details
-
WATERLOGGED
- Mappings:
Namespace Name Mixin selector official aLbwr;a:Lcik;intermediary field_28660Lnet/minecraft/class_5801;field_28660:Lnet/minecraft/class_2746;named WATERLOGGEDLnet/minecraft/block/BigDripleafBlock;WATERLOGGED:Lnet/minecraft/state/property/BooleanProperty;
-
TILT
- Mappings:
Namespace Name Mixin selector official bLbwr;b:Lcir;intermediary field_28661Lnet/minecraft/class_5801;field_28661:Lnet/minecraft/class_2754;named TILTLnet/minecraft/block/BigDripleafBlock;TILT:Lnet/minecraft/state/property/EnumProperty;
-
NEXT_TILT_DELAYS
- Mappings:
Namespace Name Mixin selector official cLbwr;c:Lit/unimi/dsi/fastutil/objects/Object2IntMap;intermediary field_28662Lnet/minecraft/class_5801;field_28662:Lit/unimi/dsi/fastutil/objects/Object2IntMap;named NEXT_TILT_DELAYSLnet/minecraft/block/BigDripleafBlock;NEXT_TILT_DELAYS:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
-
UNTILTED_SHAPE
- Mappings:
Namespace Name Mixin selector official dLbwr;d:Ldip;intermediary field_28663Lnet/minecraft/class_5801;field_28663:Lnet/minecraft/class_238;named UNTILTED_SHAPELnet/minecraft/block/BigDripleafBlock;UNTILTED_SHAPE:Lnet/minecraft/util/math/Box;
-
SHAPES_FOR_TILT
- Mappings:
Namespace Name Mixin selector official eLbwr;e:Ljava/util/Map;intermediary field_28664Lnet/minecraft/class_5801;field_28664:Ljava/util/Map;named SHAPES_FOR_TILTLnet/minecraft/block/BigDripleafBlock;SHAPES_FOR_TILT:Ljava/util/Map;
-
SHAPES_FOR_DIRECTION
- Mappings:
Namespace Name Mixin selector official fLbwr;f:Ljava/util/Map;intermediary field_28665Lnet/minecraft/class_5801;field_28665:Ljava/util/Map;named SHAPES_FOR_DIRECTIONLnet/minecraft/block/BigDripleafBlock;SHAPES_FOR_DIRECTION:Ljava/util/Map;
-
shapes
- Mappings:
Namespace Name Mixin selector official gLbwr;g:Ljava/util/Map;intermediary field_28666Lnet/minecraft/class_5801;field_28666:Ljava/util/Map;named shapesLnet/minecraft/block/BigDripleafBlock;shapes:Ljava/util/Map;
-
-
Constructor Details
-
BigDripleafBlock
- Mappings:
Namespace Name Mixin selector official <init>Lchs;<init>(Lchs$c;)Vintermediary <init>Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)Vnamed <init>Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)V
-
-
Method Details
-
getShapeForState
- Mappings:
Namespace Name Mixin selector official gLbwr;g(Lcht;)Ldjn;intermediary method_33611Lnet/minecraft/class_5801;method_33611(Lnet/minecraft/class_2680;)Lnet/minecraft/class_265;named getShapeForStateLnet/minecraft/block/BigDripleafBlock;getShapeForState(Lnet/minecraft/block/BlockState;)Lnet/minecraft/util/shape/VoxelShape;
-
getShapeForStateDirection
- Mappings:
Namespace Name Mixin selector official hLbwr;h(Lcht;)Ldjn;intermediary method_33612Lnet/minecraft/class_5801;method_33612(Lnet/minecraft/class_2680;)Lnet/minecraft/class_265;named getShapeForStateDirectionLnet/minecraft/block/BigDripleafBlock;getShapeForStateDirection(Lnet/minecraft/block/BlockState;)Lnet/minecraft/util/shape/VoxelShape;
-
getShapeForStateTilt
- Mappings:
Namespace Name Mixin selector official mLbwr;m(Lcht;)Ldjn;intermediary method_33613Lnet/minecraft/class_5801;method_33613(Lnet/minecraft/class_2680;)Lnet/minecraft/class_265;named getShapeForStateTiltLnet/minecraft/block/BigDripleafBlock;getShapeForStateTilt(Lnet/minecraft/block/BlockState;)Lnet/minecraft/util/shape/VoxelShape;
-
grow
- Mappings:
Namespace Name Mixin selector official aLbwr;a(Lbtv;Ljava/util/Random;Lfx;)Vintermediary method_33603Lnet/minecraft/class_5801;method_33603(Lnet/minecraft/class_1937;Ljava/util/Random;Lnet/minecraft/class_2338;)Vnamed growLnet/minecraft/block/BigDripleafBlock;grow(Lnet/minecraft/world/World;Ljava/util/Random;Lnet/minecraft/util/math/BlockPos;)V
-
onProjectileHit
public void onProjectileHit(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile)- Overrides:
onProjectileHitin classAbstractBlock- Mappings:
Namespace Name Mixin selector official aLchs;a(Lbtv;Lcht;Ldiq;Lbib;)Vintermediary method_19286Lnet/minecraft/class_4970;method_19286(Lnet/minecraft/class_1937;Lnet/minecraft/class_2680;Lnet/minecraft/class_3965;Lnet/minecraft/class_1676;)Vnamed onProjectileHitLnet/minecraft/block/AbstractBlock;onProjectileHit(Lnet/minecraft/world/World;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/hit/BlockHitResult;Lnet/minecraft/entity/projectile/ProjectileEntity;)V
-
getFluidState
- Overrides:
getFluidStatein classAbstractBlock- Mappings:
Namespace Name Mixin selector official dLchs;d(Lcht;)Ldal;intermediary method_9545Lnet/minecraft/class_4970;method_9545(Lnet/minecraft/class_2680;)Lnet/minecraft/class_3610;named getFluidStateLnet/minecraft/block/AbstractBlock;getFluidState(Lnet/minecraft/block/BlockState;)Lnet/minecraft/fluid/FluidState;
-
canPlaceAt
- Overrides:
canPlaceAtin classAbstractBlock- Mappings:
Namespace Name Mixin selector official aLchs;a(Lcht;Lbty;Lfx;)Zintermediary method_9558Lnet/minecraft/class_4970;method_9558(Lnet/minecraft/class_2680;Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;)Znamed canPlaceAtLnet/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:
getStateForNeighborUpdatein 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 aLchs;a(Lcht;Lgc;Lcht;Lbtw;Lfx;Lfx;)Lcht;intermediary method_9559Lnet/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 getStateForNeighborUpdateLnet/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:
isFertilizablein interfaceFertilizable- Mappings:
Namespace Name Mixin selector official aLbww;a(Lbsz;Lfx;Lcht;Z)Zintermediary method_9651Lnet/minecraft/class_2256;method_9651(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Z)Znamed isFertilizableLnet/minecraft/block/Fertilizable;isFertilizable(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Z)Z
-
canGrow
- Specified by:
canGrowin interfaceFertilizable- Mappings:
Namespace Name Mixin selector official aLbww;a(Lbtv;Ljava/util/Random;Lfx;Lcht;)Zintermediary method_9650Lnet/minecraft/class_2256;method_9650(Lnet/minecraft/class_1937;Ljava/util/Random;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Znamed canGrowLnet/minecraft/block/Fertilizable;canGrow(Lnet/minecraft/world/World;Ljava/util/Random;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Z
-
grow
- Specified by:
growin interfaceFertilizable- Mappings:
Namespace Name Mixin selector official aLbww;a(Laav;Ljava/util/Random;Lfx;Lcht;)Vintermediary method_9652Lnet/minecraft/class_2256;method_9652(Lnet/minecraft/class_3218;Ljava/util/Random;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vnamed growLnet/minecraft/block/Fertilizable;grow(Lnet/minecraft/server/world/ServerWorld;Ljava/util/Random;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
onEntityCollision
- Overrides:
onEntityCollisionin classAbstractBlock- Mappings:
Namespace Name Mixin selector official aLchs;a(Lcht;Lbtv;Lfx;Laqv;)Vintermediary method_9548Lnet/minecraft/class_4970;method_9548(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1297;)Vnamed onEntityCollisionLnet/minecraft/block/AbstractBlock;onEntityCollision(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;)V
-
scheduledTick
- Overrides:
scheduledTickin classAbstractBlock- Mappings:
Namespace Name Mixin selector official a_Lchs;a_(Lcht;Laav;Lfx;Ljava/util/Random;)Vintermediary method_9588Lnet/minecraft/class_4970;method_9588(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Ljava/util/Random;)Vnamed scheduledTickLnet/minecraft/block/AbstractBlock;scheduledTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)V
-
playTiltSound
- Mappings:
Namespace Name Mixin selector official aLbwr;a(Lbtv;Lfx;Laef;)Vintermediary method_33601Lnet/minecraft/class_5801;method_33601(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_3414;)Vnamed playTiltSoundLnet/minecraft/block/BigDripleafBlock;playTiltSound(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/sound/SoundEvent;)V
-
shouldTilt
- Mappings:
Namespace Name Mixin selector official aLbwr;a(Lbtv;Lfx;Z)Zintermediary method_33602Lnet/minecraft/class_5801;method_33602(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Z)Znamed shouldTiltLnet/minecraft/block/BigDripleafBlock;shouldTilt(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Z)Z
-
shouldEntityTilt
- Mappings:
Namespace Name Mixin selector official aLbwr;a(Lfx;Laqv;Z)Zintermediary method_33607Lnet/minecraft/class_5801;method_33607(Lnet/minecraft/class_2338;Lnet/minecraft/class_1297;Z)Znamed shouldEntityTiltLnet/minecraft/block/BigDripleafBlock;shouldEntityTilt(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;Z)Z
-
isEntityAbove
- Mappings:
Namespace Name Mixin selector official aLbwr;a(Lfx;Laqv;)Zintermediary method_33606Lnet/minecraft/class_5801;method_33606(Lnet/minecraft/class_2338;Lnet/minecraft/class_1297;)Znamed isEntityAboveLnet/minecraft/block/BigDripleafBlock;isEntityAbove(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;)Z
-
changeTilt
private void changeTilt(BlockState state, World world, BlockPos pos, Tilt tilt, @Nullable SoundEvent sound)- Mappings:
Namespace Name Mixin selector official aLbwr;a(Lcht;Lbtv;Lfx;Lcjd;Laef;)Vintermediary method_33605Lnet/minecraft/class_5801;method_33605(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_5816;Lnet/minecraft/class_3414;)Vnamed changeTiltLnet/minecraft/block/BigDripleafBlock;changeTilt(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/enums/Tilt;Lnet/minecraft/sound/SoundEvent;)V
-
resetTilt
- Mappings:
Namespace Name Mixin selector official dLbwr;d(Lcht;Lbtv;Lfx;)Vintermediary method_33610Lnet/minecraft/class_5801;method_33610(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Vnamed resetTiltLnet/minecraft/block/BigDripleafBlock;resetTilt(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
-
changeTilt
- Mappings:
Namespace Name Mixin selector official aLbwr;a(Lcht;Lbtv;Lfx;Lcjd;)Vintermediary method_33604Lnet/minecraft/class_5801;method_33604(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_5816;)Vnamed changeTiltLnet/minecraft/block/BigDripleafBlock;changeTilt(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/enums/Tilt;)V
-
getCollisionShape
public VoxelShape getCollisionShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)- Overrides:
getCollisionShapein classAbstractBlock- Mappings:
Namespace Name Mixin selector official cLchs;c(Lcht;Lbsz;Lfx;Ldiz;)Ldjn;intermediary method_9549Lnet/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 getCollisionShapeLnet/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;
-
getOutlineShape
public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)- Overrides:
getOutlineShapein classAbstractBlock- Mappings:
Namespace Name Mixin selector official aLchs;a(Lcht;Lbsz;Lfx;Ldiz;)Ldjn;intermediary method_9530Lnet/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 getOutlineShapeLnet/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
- Overrides:
getPlacementStatein classBlock- Mappings:
Namespace Name Mixin selector official aLbwu;a(Lbpv;)Lcht;intermediary method_9605Lnet/minecraft/class_2248;method_9605(Lnet/minecraft/class_1750;)Lnet/minecraft/class_2680;named getPlacementStateLnet/minecraft/block/Block;getPlacementState(Lnet/minecraft/item/ItemPlacementContext;)Lnet/minecraft/block/BlockState;
-
appendProperties
- Overrides:
appendPropertiesin classBlock- Mappings:
Namespace Name Mixin selector official aLbwu;a(Lchu$a;)Vintermediary method_9515Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)Vnamed appendPropertiesLnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V
-