content
- Mappings:
Namespace Name Mixin selector named contentLnet/minecraft/block/FlowerPotBlock;content:Lnet/minecraft/block/Block;intermediary field_11101Lnet/minecraft/class_2362;field_11101:Lnet/minecraft/class_2248;official eLdjb;e:Ldfy;
ItemConvertible, ToggleableFeature| Namespace | Name |
|---|---|
| named | net/minecraft/block/FlowerPotBlock |
| intermediary | net/minecraft/class_2362 |
| official | djb |
Block.NeighborGroupAbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.Offsetter, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>static final com.mojang.serialization.MapCodec<FlowerPotBlock> private final Blockstatic final floatprotected static final VoxelShapefield_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, STATE_IDS, stateManagercollidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableKey, randomTicks, requiredFeatures, resistance, settings, slipperiness, soundGroup, velocityMultiplierFEATURE_ENABLED_REGISTRY_KEYSprotected booleancanPathfindThrough(BlockState state,
NavigationType type) type can navigate through this block.com.mojang.serialization.MapCodec<FlowerPotBlock> getCodec()protected VoxelShapegetOutlineShape(BlockState state,
BlockView world,
BlockPos pos,
ShapeContext context) getPickStack(WorldView world,
BlockPos pos,
BlockState state) protected BlockStategetStateForNeighborUpdate(BlockState state,
Direction direction,
BlockState neighborState,
WorldAccess world,
BlockPos pos,
BlockPos neighborPos) private booleanisEmpty()protected ActionResultonUse(BlockState state,
World world,
BlockPos pos,
PlayerEntity player,
BlockHitResult hit) protected ItemActionResultonUseWithItem(ItemStack stack,
BlockState state,
World world,
BlockPos pos,
PlayerEntity player,
Hand hand,
BlockHitResult hit) afterBreak, appendProperties, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropExperienceWhenMined, dropStack, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPlacementState, getRawIdFromState, getRegistryEntry, getShapesForStates, getSlipperiness, 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, toStringcalcBlockBreakingDelta, canBucketPlace, canPlaceAt, canReplace, createCodec, createScreenHandlerFactory, createSettingsCodec, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getHardness, getLootTableKey, getMaxHorizontalModelOffset, getOpacity, getRaycastShape, getRenderingSeed, getRenderType, getRequiredFeatures, getSettings, getSidesShape, getSoundGroup, getStrongRedstonePower, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasComparatorOutput, hasRandomTicks, hasSidedTransparency, isCullingShapeFullCube, isShapeFullCube, isSideInvisible, isTransparent, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onExploded, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, prepare, randomTick, rotate, scheduledTickclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisEnabled| Namespace | Name | Mixin selector |
|---|---|---|
| named | CODEC |
Lnet/minecraft/block/FlowerPotBlock;CODEC:Lcom/mojang/serialization/MapCodec; |
| intermediary | field_46356 |
Lnet/minecraft/class_2362;field_46356:Lcom/mojang/serialization/MapCodec; |
| official | a |
Ldjb;a:Lcom/mojang/serialization/MapCodec; |
| Namespace | Name | Mixin selector |
|---|---|---|
| named | CONTENT_TO_POTTED |
Lnet/minecraft/block/FlowerPotBlock;CONTENT_TO_POTTED:Ljava/util/Map; |
| intermediary | field_11103 |
Lnet/minecraft/class_2362;field_11103:Ljava/util/Map; |
| official | d |
Ldjb;d:Ljava/util/Map; |
| Namespace | Name | Mixin selector |
|---|---|---|
| named | field_31095 |
Lnet/minecraft/block/FlowerPotBlock;field_31095:F |
| intermediary | field_31095 |
Lnet/minecraft/class_2362;field_31095:F |
| official | b |
Ldjb;b:F |
| Namespace | Name | Mixin selector |
|---|---|---|
| named | SHAPE |
Lnet/minecraft/block/FlowerPotBlock;SHAPE:Lnet/minecraft/util/shape/VoxelShape; |
| intermediary | field_11102 |
Lnet/minecraft/class_2362;field_11102:Lnet/minecraft/class_265; |
| official | c |
Ldjb;c:Lexv; |
| Namespace | Name | Mixin selector |
|---|---|---|
| named | content |
Lnet/minecraft/block/FlowerPotBlock;content:Lnet/minecraft/block/Block; |
| intermediary | field_11101 |
Lnet/minecraft/class_2362;field_11101:Lnet/minecraft/class_2248; |
| official | e |
Ldjb;e:Ldfy; |
| Namespace | Name | Mixin selector |
|---|---|---|
| named | <init> |
Lnet/minecraft/block/FlowerPotBlock;<init>(Lnet/minecraft/block/Block;Lnet/minecraft/block/AbstractBlock$Settings;)V |
| intermediary | <init> |
Lnet/minecraft/class_2362;<init>(Lnet/minecraft/class_2248;Lnet/minecraft/class_4970$class_2251;)V |
| official | <init> |
Ldjb;<init>(Ldfy;Ldtb$d;)V |
getCodec in class Block| 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 |
Ldtb;a()Lcom/mojang/serialization/MapCodec; |
getOutlineShape in class AbstractBlock| 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 |
Ldtb;a(Ldtc;Ldcc;Ljd;Lexh;)Lexv; |
onUseWithItem in class AbstractBlock| Namespace | Name | Mixin selector |
|---|---|---|
| named | onUseWithItem |
Lnet/minecraft/block/AbstractBlock;onUseWithItem(Lnet/minecraft/item/ItemStack;Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;Lnet/minecraft/util/hit/BlockHitResult;)Lnet/minecraft/util/ItemActionResult; |
| intermediary | method_55765 |
Lnet/minecraft/class_4970;method_55765(Lnet/minecraft/class_1799;Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;Lnet/minecraft/class_3965;)Lnet/minecraft/class_9062; |
| official | a |
Ldtb;a(Lcuq;Ldtc;Ldcw;Ljd;Lcmx;Lbqq;Lewy;)Lbqt; |
onUse in class AbstractBlock| Namespace | Name | Mixin selector |
|---|---|---|
| named | onUse |
Lnet/minecraft/block/AbstractBlock;onUse(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/hit/BlockHitResult;)Lnet/minecraft/util/ActionResult; |
| intermediary | method_55766 |
Lnet/minecraft/class_4970;method_55766(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;Lnet/minecraft/class_3965;)Lnet/minecraft/class_1269; |
| official | a |
Ldtb;a(Ldtc;Ldcw;Ljd;Lcmx;Lewy;)Lbqr; |
Pick block is available via middle-clicking by default. Blocks without the
corresponding BlockItem, such as crops, should
override this method to return the correct item stack.
getPickStack in class Block| Namespace | Name | Mixin selector |
|---|---|---|
| named | getPickStack |
Lnet/minecraft/block/Block;getPickStack(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/item/ItemStack; |
| intermediary | method_9574 |
Lnet/minecraft/class_2248;method_9574(Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Lnet/minecraft/class_1799; |
| official | a |
Ldfy;a(Ldcz;Ljd;Ldtc;)Lcuq; |
| Namespace | Name | Mixin selector |
|---|---|---|
| named | isEmpty |
Lnet/minecraft/block/FlowerPotBlock;isEmpty()Z |
| intermediary | method_31646 |
Lnet/minecraft/class_2362;method_31646()Z |
| official | m |
Ldjb;m()Z |
Returning Blocks.AIR breaks the block. This is useful to implement supporting
block requirement for blocks (if used along with AbstractBlock.canPlaceAt(net.minecraft.block.BlockState, net.minecraft.world.WorldView, net.minecraft.util.math.BlockPos)).
Side effects like activating a redstone component (but not scheduling a tick)
should be performed in AbstractBlock.neighborUpdate(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.block.Block, net.minecraft.util.math.BlockPos, boolean) instead. If the block supports
waterlogging and currently has water, this method should be overridden to tick the
fluid at the block's position.
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. This is not called if Block.FORCE_STATE flag is set in the
setBlockState call.
This method can be used for multiple purposes. Here are some examples:
FenceBlock uses it to update the fence's connection when a horizontally
neighboring block's state is changed.PlantBlock uses it to break the plant if the state change causes it to
lose its supporting block.DoorBlock uses it to copy the state of the other half of the door.SlabBlock uses it to schedule the fluid to tick if waterlogged.SoulSandBlock uses it to schedule the water block above to tick
so that it becomes a bubble column.FallingBlock uses it to schedule the block to tick so that it can
fall if needed.getStateForNeighborUpdate in class AbstractBlockstate - 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| Namespace | Name | Mixin selector |
|---|---|---|
| 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; |
| 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; |
| official | a |
Ldtb;a(Ldtc;Lji;Ldtc;Ldcx;Ljd;Ljd;)Ldtc; |
| Namespace | Name | Mixin selector |
|---|---|---|
| named | getContent |
Lnet/minecraft/block/FlowerPotBlock;getContent()Lnet/minecraft/block/Block; |
| intermediary | method_16231 |
Lnet/minecraft/class_2362;method_16231()Lnet/minecraft/class_2248; |
| official | b |
Ldjb;b()Ldfy; |