Package net.minecraft.block
Class FlowerbedBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.PlantBlock
net.minecraft.block.FlowerbedBlock
- All Implemented Interfaces:
- Fertilizable,- ItemConvertible,- ToggleableFeature
- Mappings:
- Namespace - Name - named - net/minecraft/block/FlowerbedBlock- intermediary - net/minecraft/class_8169- official - dpe
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.block.AbstractBlockAbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.Offsetter, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>Nested classes/interfaces inherited from interface net.minecraft.block.FertilizableFertilizable.FertilizableType
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<FlowerbedBlock> static final EnumProperty<Direction> private static final BiFunction<Direction, Integer, VoxelShape> static final intstatic final intstatic final IntPropertyFields inherited from class net.minecraft.block.Blockfield_31023, field_31024, field_31025, field_31035, FORCE_STATE, MOVED, NO_REDRAW, NOTIFY_ALL, NOTIFY_ALL_AND_REDRAW, NOTIFY_LISTENERS, NOTIFY_NEIGHBORS, REDRAW_ON_MAIN_THREAD, SKIP_DROPS, SKIP_REDSTONE_WIRE_STATE_REPLACEMENT, STATE_IDS, stateManagerFields inherited from class net.minecraft.block.AbstractBlockcollidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableKey, randomTicks, requiredFeatures, resistance, settings, slipperiness, soundGroup, translationKey, velocityMultiplierFields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeatureFEATURE_ENABLED_REGISTRY_KEYS
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidappendProperties(StateManager.Builder<Block, BlockState> builder) Appends block state properties to this block.booleancanGrow(World world, Random random, BlockPos pos, BlockState state) booleancanReplace(BlockState state, ItemPlacementContext context) Returns whether the item can replace the block.com.mojang.serialization.MapCodec<FlowerbedBlock> getCodec()getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) voidgrow(ServerWorld world, Random random, BlockPos pos, BlockState state) booleanisFertilizable(WorldView world, BlockPos pos, BlockState state) mirror(BlockState state, BlockMirror mirror) Returnsstatemirrored bymirror.rotate(BlockState state, BlockRotation rotation) Returnsstaterotated byrotation.Methods inherited from class net.minecraft.block.PlantBlockcanPathfindThrough, canPlaceAt, canPlantOnTop, getStateForNeighborUpdate, isTransparentMethods inherited from class net.minecraft.block.BlockafterBreak, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropExperienceWhenMined, dropStack, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getRawIdFromState, getRegistryEntry, getShapesForStates, getSlipperiness, getStateFromRawId, getStateManager, getStateWithProperties, getVelocityMultiplier, hasDynamicBounds, hasTopRim, isFaceFullSquare, isShapeFullCube, 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.AbstractBlockcalcBlockBreakingDelta, canBucketPlace, createCodec, createScreenHandlerFactory, createSettingsCodec, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getHardness, getInsideCollisionShape, getLootTableKey, getMaxHorizontalModelOffset, getOpacity, getPickStack, getRaycastShape, getRenderingSeed, getRenderType, getRequiredFeatures, getSettings, getSidesShape, getSoundGroup, getStrongRedstonePower, getTranslationKey, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasComparatorOutput, hasRandomTicks, hasSidedTransparency, isShapeFullCube, isSideInvisible, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onExploded, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, onUseWithItem, prepare, randomTick, scheduledTickMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.block.FertilizablegetFertilizableType, getFertilizeParticlePosMethods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeatureisEnabled
- 
Field Details- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/block/FlowerbedBlock;CODEC:Lcom/mojang/serialization/MapCodec;- intermediary - field_46409- Lnet/minecraft/class_8169;field_46409:Lcom/mojang/serialization/MapCodec;- official - a- Ldpe;a:Lcom/mojang/serialization/MapCodec;
 
- 
field_42762public static final int field_42762- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_42762- Lnet/minecraft/block/FlowerbedBlock;field_42762:I- intermediary - field_42762- Lnet/minecraft/class_8169;field_42762:I- official - b- Ldpe;b:I
 
- 
field_42763public static final int field_42763- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_42763- Lnet/minecraft/block/FlowerbedBlock;field_42763:I- intermediary - field_42763- Lnet/minecraft/class_8169;field_42763:I- official - c- Ldpe;c:I
 
- 
FACING- Mappings:
- Namespace - Name - Mixin selector - named - FACING- Lnet/minecraft/block/FlowerbedBlock;FACING:Lnet/minecraft/state/property/EnumProperty;- intermediary - field_42764- Lnet/minecraft/class_8169;field_42764:Lnet/minecraft/class_2754;- official - d- Ldpe;d:Ldxv;
 
- 
FLOWER_AMOUNT- Mappings:
- Namespace - Name - Mixin selector - named - FLOWER_AMOUNT- Lnet/minecraft/block/FlowerbedBlock;FLOWER_AMOUNT:Lnet/minecraft/state/property/IntProperty;- intermediary - field_42765- Lnet/minecraft/class_8169;field_42765:Lnet/minecraft/class_2758;- official - e- Ldpe;e:Ldxx;
 
- 
FACING_AND_AMOUNT_TO_SHAPE- Mappings:
- Namespace - Name - Mixin selector - named - FACING_AND_AMOUNT_TO_SHAPE- Lnet/minecraft/block/FlowerbedBlock;FACING_AND_AMOUNT_TO_SHAPE:Ljava/util/function/BiFunction;- intermediary - field_45146- Lnet/minecraft/class_8169;field_45146:Ljava/util/function/BiFunction;- official - f- Ldpe;f:Ljava/util/function/BiFunction;
 
 
- 
- 
Constructor Details- 
FlowerbedBlock- Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)V- intermediary - <init>- Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)V- official - <init>- Ldwx;<init>(Ldwx$d;)V
 
 
- 
- 
Method Details- 
getCodec- Specified by:
- getCodecin class- PlantBlock
- Mappings:
- Namespace - Name - Mixin selector - named - getCodec- Lnet/minecraft/block/AbstractBlock;getCodec()Lcom/mojang/serialization/MapCodec;- intermediary - method_53969- Lnet/minecraft/class_4970;method_53969()Lcom/mojang/serialization/MapCodec;- official - a- Ldwx;a()Lcom/mojang/serialization/MapCodec;
 
- 
rotateReturnsstaterotated byrotation.By default, this returns the provided block state. - Overrides:
- rotatein class- AbstractBlock
- Returns:
- staterotated by- rotation
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - rotate- Lnet/minecraft/block/AbstractBlock;rotate(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockRotation;)Lnet/minecraft/block/BlockState;- intermediary - method_9598- Lnet/minecraft/class_4970;method_9598(Lnet/minecraft/class_2680;Lnet/minecraft/class_2470;)Lnet/minecraft/class_2680;- official - a- Ldwx;a(Ldwy;Ldqf;)Ldwy;
 
- 
mirrorReturnsstatemirrored bymirror.By default, this returns the provided block state. - Overrides:
- mirrorin class- AbstractBlock
- Returns:
- statemirrored by- mirror
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - mirror- Lnet/minecraft/block/AbstractBlock;mirror(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockMirror;)Lnet/minecraft/block/BlockState;- intermediary - method_9569- Lnet/minecraft/class_4970;method_9569(Lnet/minecraft/class_2680;Lnet/minecraft/class_2415;)Lnet/minecraft/class_2680;- official - a- Ldwx;a(Ldwy;Ldom;)Ldwy;
 
- 
canReplaceReturns whether the item can replace the block.By default, this checks if the block allows replacing and whether the item differs from the block's item. Items composed of multiple blocks, such as candles, vines, or snow layers, should override this to implement additional checks. This method is called on both the logical client and logical server, so take caution when overriding this method. The logical side can be checked using World.isClient.- Overrides:
- canReplacein class- AbstractBlock
- Returns:
- whether the item can replace the block
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - canReplace- Lnet/minecraft/block/AbstractBlock;canReplace(Lnet/minecraft/block/BlockState;Lnet/minecraft/item/ItemPlacementContext;)Z- intermediary - method_9616- Lnet/minecraft/class_4970;method_9616(Lnet/minecraft/class_2680;Lnet/minecraft/class_1750;)Z- official - a- Ldwx;a(Ldwy;Ldah;)Z
 
- 
getOutlineShapepublic VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) - Overrides:
- getOutlineShapein class- AbstractBlock
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - 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;- 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;- official - a- Ldwx;a(Ldwy;Ldfo;Lji;Lfbg;)Lfbv;
 
- 
getPlacementState- Overrides:
- getPlacementStatein class- Block
- Mappings:
- Namespace - Name - Mixin selector - named - getPlacementState- Lnet/minecraft/block/Block;getPlacementState(Lnet/minecraft/item/ItemPlacementContext;)Lnet/minecraft/block/BlockState;- intermediary - method_9605- Lnet/minecraft/class_2248;method_9605(Lnet/minecraft/class_1750;)Lnet/minecraft/class_2680;- official - a- Ldjn;a(Ldah;)Ldwy;
 
- 
appendPropertiesAppends block state properties to this block. To use this, override and callStateManager.Builder.add(net.minecraft.state.property.Property<?>[])inside the method. SeePropertiesfor the list of pre-defined properties.- Overrides:
- appendPropertiesin class- Block
- Mappings:
- Namespace - Name - Mixin selector - named - appendProperties- Lnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V- intermediary - method_9515- Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)V- official - a- Ldjn;a(Ldwz$a;)V
 
- 
isFertilizable- Specified by:
- isFertilizablein interface- Fertilizable
- Mappings:
- Namespace - Name - Mixin selector - named - isFertilizable- Lnet/minecraft/block/Fertilizable;isFertilizable(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Z- intermediary - method_9651- Lnet/minecraft/class_2256;method_9651(Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Z- official - a- Ldjq;a(Ldgm;Lji;Ldwy;)Z
 
- 
canGrow- Specified by:
- canGrowin interface- Fertilizable
- Mappings:
- Namespace - Name - Mixin selector - named - canGrow- Lnet/minecraft/block/Fertilizable;canGrow(Lnet/minecraft/world/World;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Z- intermediary - method_9650- Lnet/minecraft/class_2256;method_9650(Lnet/minecraft/class_1937;Lnet/minecraft/class_5819;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Z- official - a- Ldjq;a(Ldgj;Lazh;Lji;Ldwy;)Z
 
- 
grow- Specified by:
- growin interface- Fertilizable
- Mappings:
- Namespace - Name - Mixin selector - named - grow- Lnet/minecraft/block/Fertilizable;grow(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V- intermediary - method_9652- Lnet/minecraft/class_2256;method_9652(Lnet/minecraft/class_3218;Lnet/minecraft/class_5819;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V- official - a- Ldjq;a(Lard;Lazh;Lji;Ldwy;)V
 
 
-