Package net.minecraft.block
Class AbstractPlantPartBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.AbstractPlantPartBlock
- All Implemented Interfaces:
ItemConvertible
- Direct Known Subclasses:
AbstractPlantBlock,AbstractPlantStemBlock
- Mappings:
Namespace Name official cmaintermediary net/minecraft/class_4863named net/minecraft/block/AbstractPlantPartBlock
-
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
FieldsModifier and TypeFieldDescriptionprotected final Directionprotected final VoxelShapeprotected final booleanFields inherited from class net.minecraft.block.Block
field_31022, field_31023, field_31024, field_31025, field_31035, FORCE_STATE, MOVED, NO_REDRAW, NOTIFY_ALL, NOTIFY_LISTENERS, NOTIFY_NEIGHBORS, REDRAW_ON_MAIN_THREAD, SKIP_DROPS, SKIP_LIGHTING_UPDATES, STATE_IDS, stateManagerFields inherited from class net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractPlantPartBlock(AbstractBlock.Settings settings, Direction growthDirection, VoxelShape outlineShape, boolean tickWater) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanAttachTo(BlockState state) booleancanPlaceAt(BlockState state, WorldView world, BlockPos pos) getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) protected abstract BlockgetPlant()getRandomGrowthState(WorldAccess world) protected abstract AbstractPlantStemBlockgetStem()voidscheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Methods inherited from class net.minecraft.block.Block
afterBreak, appendProperties, appendStacks, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropExperienceWhenMined, dropStack, dropStack, dropStacks, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getRawIdFromState, getRegistryEntry, getShapesForStates, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getStateWithProperties, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasRandomTicks, hasTopRim, isFaceFullSquare, isShapeFullCube, isTranslucent, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, spawnBreakParticles, toStringMethods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canReplace, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getHardness, getLootTableId, getMaxHorizontalModelOffset, getOpacity, getPistonBehavior, getRaycastShape, getRenderingSeed, getRenderType, getSidesShape, getStateForNeighborUpdate, getStrongRedstonePower, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasComparatorOutput, hasSidedTransparency, isCullingShapeFullCube, isShapeFullCube, isSideInvisible, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, prepare, randomTick, rotate
-
Field Details
-
growthDirection
- Mappings:
Namespace Name Mixin selector official aLcma;a:Lgy;intermediary field_22507Lnet/minecraft/class_4863;field_22507:Lnet/minecraft/class_2350;named growthDirectionLnet/minecraft/block/AbstractPlantPartBlock;growthDirection:Lnet/minecraft/util/math/Direction;
-
tickWater
protected final boolean tickWater- Mappings:
Namespace Name Mixin selector official bLcma;b:Zintermediary field_22508Lnet/minecraft/class_4863;field_22508:Znamed tickWaterLnet/minecraft/block/AbstractPlantPartBlock;tickWater:Z
-
outlineShape
- Mappings:
Namespace Name Mixin selector official cLcma;c:Ldwm;intermediary field_23080Lnet/minecraft/class_4863;field_23080:Lnet/minecraft/class_265;named outlineShapeLnet/minecraft/block/AbstractPlantPartBlock;outlineShape:Lnet/minecraft/util/shape/VoxelShape;
-
-
Constructor Details
-
AbstractPlantPartBlock
protected AbstractPlantPartBlock(AbstractBlock.Settings settings, Direction growthDirection, VoxelShape outlineShape, boolean tickWater) - Mappings:
Namespace Name Mixin selector official <init>Lcma;<init>(Lcuq$c;Lgy;Ldwm;Z)Vintermediary <init>Lnet/minecraft/class_4863;<init>(Lnet/minecraft/class_4970$class_2251;Lnet/minecraft/class_2350;Lnet/minecraft/class_265;Z)Vnamed <init>Lnet/minecraft/block/AbstractPlantPartBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;Lnet/minecraft/util/math/Direction;Lnet/minecraft/util/shape/VoxelShape;Z)V
-
-
Method Details
-
getPlacementState
- Overrides:
getPlacementStatein classBlock- Mappings:
Namespace Name Mixin selector official aLciw;a(Lcca;)Lcur;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;
-
getRandomGrowthState
- Mappings:
Namespace Name Mixin selector official aLcma;a(Lcgb;)Lcur;intermediary method_24948Lnet/minecraft/class_4863;method_24948(Lnet/minecraft/class_1936;)Lnet/minecraft/class_2680;named getRandomGrowthStateLnet/minecraft/block/AbstractPlantPartBlock;getRandomGrowthState(Lnet/minecraft/world/WorldAccess;)Lnet/minecraft/block/BlockState;
-
canPlaceAt
- Overrides:
canPlaceAtin classAbstractBlock- Mappings:
Namespace Name Mixin selector official aLcuq;a(Lcur;Lcgd;Lgt;)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
-
scheduledTick
- Overrides:
scheduledTickin classAbstractBlock- Mappings:
Namespace Name Mixin selector official aLcuq;a(Lcur;Lafo;Lgt;Lalu;)Vintermediary method_9588Lnet/minecraft/class_4970;method_9588(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)Vnamed scheduledTickLnet/minecraft/block/AbstractBlock;scheduledTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)V
-
canAttachTo
- Mappings:
Namespace Name Mixin selector official hLcma;h(Lcur;)Zintermediary method_24947Lnet/minecraft/class_4863;method_24947(Lnet/minecraft/class_2680;)Znamed canAttachToLnet/minecraft/block/AbstractPlantPartBlock;canAttachTo(Lnet/minecraft/block/BlockState;)Z
-
getOutlineShape
public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) - Overrides:
getOutlineShapein classAbstractBlock- Mappings:
Namespace Name Mixin selector official aLcuq;a(Lcur;Lcfg;Lgt;Ldvy;)Ldwm;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;
-
getStem
- Mappings:
Namespace Name Mixin selector official cLcma;c()Lcmc;intermediary method_24945Lnet/minecraft/class_4863;method_24945()Lnet/minecraft/class_4865;named getStemLnet/minecraft/block/AbstractPlantPartBlock;getStem()Lnet/minecraft/block/AbstractPlantStemBlock;
-
getPlant
- Mappings:
Namespace Name Mixin selector official bLcma;b()Lciw;intermediary method_24946Lnet/minecraft/class_4863;method_24946()Lnet/minecraft/class_2248;named getPlantLnet/minecraft/block/AbstractPlantPartBlock;getPlant()Lnet/minecraft/block/Block;
-