Class class_10374
- All Implemented Interfaces:
SuspiciousStewIngredient,ItemConvertible,ToggleableFeature
- Mappings:
Namespace Name named net/minecraft/class_10374intermediary net/minecraft/class_10374official dmx
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.Offsetter, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<class_10374> private static final intprivate static final intprivate final class_10374.class_10375Fields inherited from class net.minecraft.block.FlowerBlock
CODEC, field_31094, SHAPE, STEW_EFFECT_CODECFields inherited from class net.minecraft.block.Block
field_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.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableKey, randomTicks, requiredFeatures, resistance, settings, slipperiness, soundGroup, translationKey, velocityMultiplierFields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
FEATURE_ENABLED_REGISTRY_KEYS -
Constructor Summary
ConstructorsConstructorDescriptionclass_10374(boolean bool, AbstractBlock.Settings settings) class_10374(class_10374.class_10375 class_10375, AbstractBlock.Settings settings) -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec<? extends class_10374> getCodec()private booleanmethod_65153(BlockState blockState, ServerWorld serverWorld, BlockPos blockPos, Random random) protected voidonEntityCollision(BlockState state, World world, BlockPos pos, Entity entity) Called when the entity's collision box intersects the block.voidrandomDisplayTick(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.protected voidrandomTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected voidscheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.Methods inherited from class net.minecraft.block.FlowerBlock
createStewEffectList, getOutlineShape, getStewEffectsMethods inherited from class net.minecraft.block.PlantBlock
canPathfindThrough, canPlaceAt, canPlantOnTop, getStateForNeighborUpdate, isTransparentMethods inherited from class net.minecraft.block.Block
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, getVelocityMultiplier, hasDynamicBounds, hasTopRim, isFaceFullSquare, isShapeFullCube, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, spawnBreakParticles, toStringMethods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canReplace, 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, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onExploded, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, onUseWithItem, prepare, rotateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
isEnabled
-
Field Details
-
field_55066
- Mappings:
Namespace Name Mixin selector named field_55066Lnet/minecraft/class_10374;field_55066:Lcom/mojang/serialization/MapCodec;intermediary field_55066Lnet/minecraft/class_10374;field_55066:Lcom/mojang/serialization/MapCodec;official aLdmx;a:Lcom/mojang/serialization/MapCodec;
-
field_55067
private static final int field_55067- See Also:
- Mappings:
Namespace Name Mixin selector named field_55067Lnet/minecraft/class_10374;field_55067:Iintermediary field_55067Lnet/minecraft/class_10374;field_55067:Iofficial fLdmx;f:I
-
field_55068
private static final int field_55068- See Also:
- Mappings:
Namespace Name Mixin selector named field_55068Lnet/minecraft/class_10374;field_55068:Iintermediary field_55068Lnet/minecraft/class_10374;field_55068:Iofficial gLdmx;g:I
-
field_55069
- Mappings:
Namespace Name Mixin selector named field_55069Lnet/minecraft/class_10374;field_55069:Lnet/minecraft/class_10374$class_10375;intermediary field_55069Lnet/minecraft/class_10374;field_55069:Lnet/minecraft/class_10374$class_10375;official hLdmx;h:Ldmx$a;
-
-
Constructor Details
-
class_10374
-
class_10374
-
-
Method Details
-
getCodec
- Overrides:
getCodecin classFlowerBlock- Mappings:
Namespace Name Mixin selector named getCodecLnet/minecraft/block/AbstractBlock;getCodec()Lcom/mojang/serialization/MapCodec;intermediary method_53969Lnet/minecraft/class_4970;method_53969()Lcom/mojang/serialization/MapCodec;official aLdxn;a()Lcom/mojang/serialization/MapCodec;
-
randomDisplayTick
Called randomly on the client. Blocks may override this to spawn particles. UnlikeAbstractBlock.randomTick(net.minecraft.block.BlockState, net.minecraft.server.world.ServerWorld, net.minecraft.util.math.BlockPos, net.minecraft.util.math.random.Random)this is not affected by a game rule.- Overrides:
randomDisplayTickin classBlock- Mappings:
Namespace Name Mixin selector named randomDisplayTickLnet/minecraft/block/Block;randomDisplayTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)Vintermediary method_9496Lnet/minecraft/class_2248;method_9496(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)Vofficial aLdkd;a(Ldxo;Ldgz;Ljh;Lbac;)V
-
randomTick
Called server-side when a block gets ticked randomly. This can be overridden to implement various logics, most commonly plant growth. Default implementation does nothing. To control the rate of the action, userandom.Random tick speed is controlled by the game rule
randomTickSpeedand 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:
-
uses this to grow sugar cane.
invalid reference
SugarCaneBlock -
uses this to oxidize.
invalid reference
OxidizableBlock -
uses this to spawn zombified piglins.
invalid reference
NetherPortalBlock -
uses this to decay when far from logs.
invalid reference
LeavesBlock
- Overrides:
randomTickin classAbstractBlock- See Also:
- Mappings:
Namespace Name Mixin selector named randomTickLnet/minecraft/block/AbstractBlock;randomTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)Vintermediary method_9514Lnet/minecraft/class_4970;method_9514(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)Vofficial bLdxn;b(Ldxo;Larx;Ljh;Lbac;)V
-
-
scheduledTick
Called server-side when a block receives a scheduled tick. This can be used like a timer. Scheduled ticks are added usingScheduledTickView.scheduleBlockTick(BlockPos, Block, int).Scheduled ticks are often used inside
PlantBlock.getStateForNeighborUpdate(net.minecraft.block.BlockState, net.minecraft.world.WorldView, net.minecraft.world.tick.ScheduledTickView, net.minecraft.util.math.BlockPos, net.minecraft.util.math.Direction, net.minecraft.util.math.BlockPos, net.minecraft.block.BlockState, net.minecraft.util.math.random.Random).Here are some examples:
-
checks the placement requirement.
invalid reference
SugarCaneBlock -
dispenses its content.
invalid reference
DispenserBlock -
executes its command.
invalid reference
CommandBlock -
spawns a tadpole.
invalid reference
FrogspawnBlock -
updates a bubble column.
invalid reference
SoulSandBlock -
tries to fall.
invalid reference
FallingBlock
- Overrides:
scheduledTickin classAbstractBlock- See Also:
- Mappings:
Namespace Name Mixin selector named 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;)Vintermediary method_9588Lnet/minecraft/class_4970;method_9588(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)Vofficial aLdxn;a(Ldxo;Larx;Ljh;Lbac;)V
-
-
method_65153
private boolean method_65153(BlockState blockState, ServerWorld serverWorld, BlockPos blockPos, Random random) - Mappings:
Namespace Name Mixin selector named method_65153Lnet/minecraft/class_10374;method_65153(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)Zintermediary method_65153Lnet/minecraft/class_10374;method_65153(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)Zofficial cLdmx;c(Ldxo;Larx;Ljh;Lbac;)Z
-
onEntityCollision
Called when the entity's collision box intersects the block. Therefore, this method is not called for blocks with a collision; usefor those blocks.invalid reference
Block#onSteppedOnThis 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.Here are some examples:
-
damages the entity.
invalid reference
CactusBlock -
triggers.
invalid reference
AbstractPressurePlateBlock -
slows the entity.
invalid reference
CobwebBlock -
teleports the entity.
invalid reference
EndPortalBlock -
collects the item entity.
invalid reference
HopperBlock
- Overrides:
onEntityCollisionin classAbstractBlock- See Also:
- Mappings:
Namespace Name Mixin selector named onEntityCollisionLnet/minecraft/block/AbstractBlock;onEntityCollision(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;)Vintermediary method_9548Lnet/minecraft/class_4970;method_9548(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1297;)Vofficial aLdxn;a(Ldxo;Ldgz;Ljh;Lbvb;)V
-
-
method_65152
- Overrides:
method_65152in classFlowerBlock- Mappings:
Namespace Name Mixin selector named method_65152Lnet/minecraft/block/FlowerBlock;method_65152()Lnet/minecraft/entity/effect/StatusEffectInstance;intermediary method_65152Lnet/minecraft/class_2356;method_65152()Lnet/minecraft/class_1293;official bLdng;b()Lbug;
-