Class EyeblossomBlock
- All Implemented Interfaces:
SuspiciousStewIngredient
,ItemConvertible
,ToggleableFeature
- Mappings:
Namespace Name named net/minecraft/block/EyeblossomBlock
intermediary net/minecraft/class_10374
official dqj
-
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
<EyeblossomBlock> private static final int
private static final int
private final EyeblossomBlock.EyeblossomState
Fields inherited from class net.minecraft.block.FlowerBlock
STEW_EFFECT_CODEC
Fields inherited from class net.minecraft.block.Block
field_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, stateManager
Fields inherited from class net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableKey, randomTicks, requiredFeatures, resistance, settings, slipperiness, soundGroup, translationKey, velocityMultiplier
Fields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
FEATURE_ENABLED_REGISTRY_KEYS
-
Constructor Summary
ConstructorsConstructorDescriptionEyeblossomBlock
(boolean open, AbstractBlock.Settings settings) EyeblossomBlock
(EyeblossomBlock.EyeblossomState state, AbstractBlock.Settings settings) -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec
<? extends EyeblossomBlock> getCodec()
protected void
onEntityCollision
(BlockState state, World world, BlockPos pos, Entity entity, EntityCollisionHandler handler) Called when the entity's collision box intersects the block.void
randomDisplayTick
(BlockState state, World world, BlockPos pos, Random random) Called randomly on the client.protected void
randomTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block gets ticked randomly.protected void
scheduledTick
(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.private boolean
updateStateAndNotifyOthers
(BlockState state, ServerWorld world, BlockPos pos, Random random) Methods inherited from class net.minecraft.block.FlowerBlock
createStewEffectList, getOutlineShape, getStewEffects
Methods inherited from class net.minecraft.block.PlantBlock
canPathfindThrough, canPlaceAt, canPlantOnTop, getStateForNeighborUpdate, isTransparent
Methods inherited from class net.minecraft.block.Block
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, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, spawnBreakParticles, toString
Methods 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, rotate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
isEnabled
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/block/EyeblossomBlock;CODEC:Lcom/mojang/serialization/MapCodec;
intermediary field_55066
Lnet/minecraft/class_10374;field_55066:Lcom/mojang/serialization/MapCodec;
official a
Ldqj;a:Lcom/mojang/serialization/MapCodec;
-
NOTIFY_RANGE_XZ
private static final int NOTIFY_RANGE_XZ- See Also:
- Mappings:
Namespace Name Mixin selector named NOTIFY_RANGE_XZ
Lnet/minecraft/block/EyeblossomBlock;NOTIFY_RANGE_XZ:I
intermediary field_55067
Lnet/minecraft/class_10374;field_55067:I
official d
Ldqj;d:I
-
NOTIFY_RANGE_Y
private static final int NOTIFY_RANGE_Y- See Also:
- Mappings:
Namespace Name Mixin selector named NOTIFY_RANGE_Y
Lnet/minecraft/block/EyeblossomBlock;NOTIFY_RANGE_Y:I
intermediary field_55068
Lnet/minecraft/class_10374;field_55068:I
official e
Ldqj;e:I
-
state
- Mappings:
Namespace Name Mixin selector named state
Lnet/minecraft/block/EyeblossomBlock;state:Lnet/minecraft/block/EyeblossomBlock$EyeblossomState;
intermediary field_55069
Lnet/minecraft/class_10374;field_55069:Lnet/minecraft/class_10374$class_10375;
official f
Ldqj;f:Ldqj$a;
-
-
Constructor Details
-
EyeblossomBlock
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/block/EyeblossomBlock;<init>(Lnet/minecraft/block/EyeblossomBlock$EyeblossomState;Lnet/minecraft/block/AbstractBlock$Settings;)V
intermediary <init>
Lnet/minecraft/class_10374;<init>(Lnet/minecraft/class_10374$class_10375;Lnet/minecraft/class_4970$class_2251;)V
official <init>
Ldqj;<init>(Ldqj$a;Lebp$d;)V
-
EyeblossomBlock
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/block/EyeblossomBlock;<init>(ZLnet/minecraft/block/AbstractBlock$Settings;)V
intermediary <init>
Lnet/minecraft/class_10374;<init>(ZLnet/minecraft/class_4970$class_2251;)V
official <init>
Ldqj;<init>(ZLebp$d;)V
-
-
Method Details
-
getCodec
- Overrides:
getCodec
in classFlowerBlock
- 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
Lebp;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:
randomDisplayTick
in classBlock
- Mappings:
Namespace Name Mixin selector named randomDisplayTick
Lnet/minecraft/block/Block;randomDisplayTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)V
intermediary method_9496
Lnet/minecraft/class_2248;method_9496(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)V
official a
Ldno;a(Lebq;Ldkj;Liw;Lbai;)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
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.
- Overrides:
randomTick
in classAbstractBlock
- See Also:
- Mappings:
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
-
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:
SugarCaneBlock
checks the placement requirement.DispenserBlock
dispenses its content.CommandBlock
executes its command.FrogspawnBlock
spawns a tadpole.SoulSandBlock
updates a bubble column.FallingBlock
tries to fall.
- Overrides:
scheduledTick
in classAbstractBlock
- See Also:
- Mappings:
Namespace Name Mixin selector named scheduledTick
Lnet/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
intermediary method_9588
Lnet/minecraft/class_4970;method_9588(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)V
official a
Lebp;a(Lebq;Lasb;Liw;Lbai;)V
-
updateStateAndNotifyOthers
private boolean updateStateAndNotifyOthers(BlockState state, ServerWorld world, BlockPos pos, Random random) - Mappings:
Namespace Name Mixin selector named updateStateAndNotifyOthers
Lnet/minecraft/block/EyeblossomBlock;updateStateAndNotifyOthers(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)Z
intermediary method_65153
Lnet/minecraft/class_10374;method_65153(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)Z
official c
Ldqj;c(Lebq;Lasb;Liw;Lbai;)Z
-
onEntityCollision
protected void onEntityCollision(BlockState state, World world, BlockPos pos, Entity entity, EntityCollisionHandler handler) Called when the entity's collision box intersects the block. Therefore, this method is not called for blocks with a collision; useBlock.onSteppedOn(net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.block.BlockState, net.minecraft.entity.Entity)
for those blocks.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
.Here are some examples:
CactusBlock
damages the entity.AbstractPressurePlateBlock
triggers.CobwebBlock
slows the entity.EndPortalBlock
teleports the entity.HopperBlock
collects the item entity.
- Overrides:
onEntityCollision
in classAbstractBlock
- See Also:
- Mappings:
Namespace Name Mixin selector named onEntityCollision
Lnet/minecraft/block/AbstractBlock;onEntityCollision(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/EntityCollisionHandler;)V
intermediary method_9548
Lnet/minecraft/class_4970;method_9548(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1297;Lnet/minecraft/class_10774;)V
official a
Lebp;a(Lebq;Ldkj;Liw;Lbxe;Lbxx;)V
-
getContactEffect
- Overrides:
getContactEffect
in classFlowerBlock
- Mappings:
Namespace Name Mixin selector named getContactEffect
Lnet/minecraft/block/FlowerBlock;getContactEffect()Lnet/minecraft/entity/effect/StatusEffectInstance;
intermediary method_65152
Lnet/minecraft/class_2356;method_65152()Lnet/minecraft/class_1293;
official b
Ldqu;b()Lbwi;
-