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 dLdqv;d:Ldno;
ItemConvertible, ToggleableFeature| Namespace | Name |
|---|---|
| named | net/minecraft/block/FlowerPotBlock |
| intermediary | net/minecraft/class_2362 |
| official | dqv |
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.Offsetter, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>static final com.mojang.serialization.MapCodec<FlowerPotBlock> private final Blockprivate static final VoxelShapefield_31023, field_31024, field_31025, FORCE_STATE, FORCE_STATE_AND_SKIP_CALLBACKS_AND_DROPS, MOVED, NO_REDRAW, NOTIFY_ALL, NOTIFY_ALL_AND_REDRAW, NOTIFY_LISTENERS, NOTIFY_NEIGHBORS, REDRAW_ON_MAIN_THREAD, SKIP_BLOCK_ADDED_CALLBACK, SKIP_BLOCK_ENTITY_REPLACED_CALLBACK, SKIP_DROPS, SKIP_REDRAW_AND_BLOCK_ENTITY_REPLACED_CALLBACK, SKIP_REDSTONE_WIRE_STATE_REPLACEMENT, STATE_IDS, stateManagercollidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableKey, randomTicks, requiredFeatures, resistance, settings, slipperiness, soundGroup, translationKey, 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) protected ItemStackgetPickStack(WorldView world,
BlockPos pos,
BlockState state,
boolean includeData) protected BlockStategetStateForNeighborUpdate(BlockState state,
WorldView world,
ScheduledTickView tickView,
BlockPos pos,
Direction direction,
BlockPos neighborPos,
BlockState neighborState,
Random random) getToggledState(BlockState state) protected booleanhasRandomTicks(BlockState state) private booleanisEmpty()protected ActionResultonUse(BlockState state,
World world,
BlockPos pos,
PlayerEntity player,
BlockHitResult hit) protected ActionResultonUseWithItem(ItemStack stack,
BlockState state,
World world,
BlockPos pos,
PlayerEntity player,
Hand hand,
BlockHitResult hit) protected voidrandomTick(BlockState state,
ServerWorld world,
BlockPos pos,
Random random) afterBreak, appendProperties, asBlock, asItem, canMobSpawnInside, cannotConnect, createColumnShape, createColumnShape, createCubeShape, createCuboidShape, createCuboidShape, createCuboidZShape, createCuboidZShape, createCuboidZShape, createShapeArray, createShapeFunction, createShapeFunction, dropExperience, dropExperienceWhenMined, dropStack, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPlacementState, getRawIdFromState, getRegistryEntry, 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, toStringcalcBlockBreakingDelta, canBucketPlace, canPlaceAt, canReplace, createCodec, createScreenHandlerFactory, createSettingsCodec, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getHardness, getInsideCollisionShape, getLootTableKey, getMaxHorizontalModelOffset, getOpacity, getRaycastShape, getRenderingSeed, getRenderType, getRequiredFeatures, getSettings, getSidesShape, getSoundGroup, getStrongRedstonePower, getTranslationKey, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasComparatorOutput, hasSidedTransparency, isShapeFullCube, isSideInvisible, isTransparent, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onExploded, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, prepare, 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 |
Ldqv;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 | b |
Ldqv;b:Ljava/util/Map; |
| 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 |
Ldqv;c:Lfgw; |
| 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 | d |
Ldqv;d:Ldno; |
| 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> |
Ldqv;<init>(Ldno;Lebp$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 |
Lebp;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 |
Lebp;a(Lebq;Ldjn;Liw;Lfgh;)Lfgw; |
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/ActionResult; |
| 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_1269; |
| official | a |
Lebp;a(Ldak;Lebq;Ldkj;Liw;Lcsi;Lbvb;Lffy;)Lbvc; |
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 |
Lebp;a(Lebq;Ldkj;Liw;Lcsi;Lffy;)Lbvc; |
getPickStack in class AbstractBlock| Namespace | Name | Mixin selector |
|---|---|---|
| named | getPickStack |
Lnet/minecraft/block/AbstractBlock;getPickStack(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Z)Lnet/minecraft/item/ItemStack; |
| intermediary | method_9574 |
Lnet/minecraft/class_4970;method_9574(Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Z)Lnet/minecraft/class_1799; |
| official | a |
Lebp;a(Ldkm;Liw;Lebq;Z)Ldak; |
| Namespace | Name | Mixin selector |
|---|---|---|
| named | isEmpty |
Lnet/minecraft/block/FlowerPotBlock;isEmpty()Z |
| intermediary | method_31646 |
Lnet/minecraft/class_2362;method_31646()Z |
| official | q |
Ldqv;q()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.world.block.WireOrientation, 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 blockworld - the worldpos - the position of this blockdirection - the direction from this block to the neighborneighborPos - the position of the neighbor blockneighborState - the state of the updated neighbor block| Namespace | Name | Mixin selector |
|---|---|---|
| named | getStateForNeighborUpdate |
Lnet/minecraft/block/AbstractBlock;getStateForNeighborUpdate(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldView;Lnet/minecraft/world/tick/ScheduledTickView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/random/Random;)Lnet/minecraft/block/BlockState; |
| intermediary | method_9559 |
Lnet/minecraft/class_4970;method_9559(Lnet/minecraft/class_2680;Lnet/minecraft/class_4538;Lnet/minecraft/class_10225;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_5819;)Lnet/minecraft/class_2680; |
| official | a |
Lebp;a(Lebq;Ldkm;Ldky;Liw;Ljc;Liw;Lebq;Lbai;)Lebq; |
| 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 |
Ldqv;b()Ldno; |
hasRandomTicks in class AbstractBlock| Namespace | Name | Mixin selector |
|---|---|---|
| named | hasRandomTicks |
Lnet/minecraft/block/AbstractBlock;hasRandomTicks(Lnet/minecraft/block/BlockState;)Z |
| intermediary | method_9542 |
Lnet/minecraft/class_4970;method_9542(Lnet/minecraft/class_2680;)Z |
| official | f |
Lebp;f(Lebq;)Z |
random.
Random tick speed is controlled by the game rule randomTickSpeed and can be disabled.
Only blocks within 128-block cylinder (i.e. ignoring Y coordinates) around players
receive random ticks.
Blocks overriding this must use AbstractBlock.Settings.ticksRandomly()
block settings.
Here are some examples:
SugarCaneBlock uses this to grow sugar cane.OxidizableBlock uses this to oxidize.NetherPortalBlock uses this to spawn zombified piglins.LeavesBlock uses this to decay when far from logs.randomTick in class AbstractBlock| Namespace | Name | Mixin selector |
|---|---|---|
| named | randomTick |
Lnet/minecraft/block/AbstractBlock;randomTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)V |
| intermediary | method_9514 |
Lnet/minecraft/class_4970;method_9514(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)V |
| official | b |
Lebp;b(Lebq;Lasb;Liw;Lbai;)V |
| Namespace | Name | Mixin selector |
|---|---|---|
| named | getToggledState |
Lnet/minecraft/block/FlowerPotBlock;getToggledState(Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/BlockState; |
| intermediary | method_65160 |
Lnet/minecraft/class_2362;method_65160(Lnet/minecraft/class_2680;)Lnet/minecraft/class_2680; |
| official | o |
Ldqv;o(Lebq;)Lebq; |