Package net.minecraft.block
Class SnifferEggBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.SnifferEggBlock
- All Implemented Interfaces:
- ItemConvertible,- ToggleableFeature
- Mappings:
- Namespace - Name - named - net/minecraft/block/SnifferEggBlock- intermediary - net/minecraft/class_8238- official - dmj
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.block.BlockBlock.NeighborGroupNested classes/interfaces inherited from class net.minecraft.block.AbstractBlockAbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.Offsetter, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final intstatic final com.mojang.serialization.MapCodec<SnifferEggBlock> static final intstatic final IntPropertyprivate static final intprivate static final intprivate static final VoxelShapeFields 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, STATE_IDS, stateManagerFields inherited from class net.minecraft.block.AbstractBlockcollidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableKey, randomTicks, requiredFeatures, resistance, settings, slipperiness, soundGroup, 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.booleancanPathfindThrough(BlockState state, NavigationType type) Returns if an entity using navigation typetypecan navigate through this block.com.mojang.serialization.MapCodec<SnifferEggBlock> getCodec()intgetHatchStage(BlockState state) getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) static booleanisAboveHatchBooster(BlockView world, BlockPos pos) private booleanisReadyToHatch(BlockState state) voidonBlockAdded(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) Called server-side on the new block when the block state is changed.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.BlockafterBreak, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropExperienceWhenMined, dropStack, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, 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, toStringMethods inherited from class net.minecraft.block.AbstractBlockcalcBlockBreakingDelta, 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, getStateForNeighborUpdate, getStrongRedstonePower, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasComparatorOutput, hasRandomTicks, hasSidedTransparency, isCullingShapeFullCube, isShapeFullCube, isSideInvisible, isTransparent, mirror, neighborUpdate, onBlockBreakStart, onEntityCollision, onExploded, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, onUseWithItem, prepare, randomTick, rotateMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeatureisEnabled
- 
Field Details- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/block/SnifferEggBlock;CODEC:Lcom/mojang/serialization/MapCodec;- intermediary - field_46450- Lnet/minecraft/class_8238;field_46450:Lcom/mojang/serialization/MapCodec;- official - a- Ldmj;a:Lcom/mojang/serialization/MapCodec;
 
- 
FINAL_HATCH_STAGEpublic static final int FINAL_HATCH_STAGE- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - FINAL_HATCH_STAGE- Lnet/minecraft/block/SnifferEggBlock;FINAL_HATCH_STAGE:I- intermediary - field_43249- Lnet/minecraft/class_8238;field_43249:I- official - b- Ldmj;b:I
 
- 
HATCH- Mappings:
- Namespace - Name - Mixin selector - named - HATCH- Lnet/minecraft/block/SnifferEggBlock;HATCH:Lnet/minecraft/state/property/IntProperty;- intermediary - field_43250- Lnet/minecraft/class_8238;field_43250:Lnet/minecraft/class_2758;- official - c- Ldmj;c:Ldte;
 
- 
HATCHING_TIMEprivate static final int HATCHING_TIME- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - HATCHING_TIME- Lnet/minecraft/block/SnifferEggBlock;HATCHING_TIME:I- intermediary - field_43251- Lnet/minecraft/class_8238;field_43251:I- official - d- Ldmj;d:I
 
- 
BOOSTED_HATCHING_TIMEprivate static final int BOOSTED_HATCHING_TIME- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - BOOSTED_HATCHING_TIME- Lnet/minecraft/block/SnifferEggBlock;BOOSTED_HATCHING_TIME:I- intermediary - field_43252- Lnet/minecraft/class_8238;field_43252:I- official - e- Ldmj;e:I
 
- 
MAX_RANDOM_CRACK_TIME_OFFSETprivate static final int MAX_RANDOM_CRACK_TIME_OFFSET- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - MAX_RANDOM_CRACK_TIME_OFFSET- Lnet/minecraft/block/SnifferEggBlock;MAX_RANDOM_CRACK_TIME_OFFSET:I- intermediary - field_43253- Lnet/minecraft/class_8238;field_43253:I- official - f- Ldmj;f:I
 
- 
SHAPE- Mappings:
- Namespace - Name - Mixin selector - named - SHAPE- Lnet/minecraft/block/SnifferEggBlock;SHAPE:Lnet/minecraft/util/shape/VoxelShape;- intermediary - field_43254- Lnet/minecraft/class_8238;field_43254:Lnet/minecraft/class_265;- official - g- Ldmj;g:Lewm;
 
 
- 
- 
Constructor Details- 
SnifferEggBlock- 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>- Ldsd;<init>(Ldsd$d;)V
 
 
- 
- 
Method Details- 
getCodec- Overrides:
- getCodecin class- Block
- 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- Ldsd;a()Lcom/mojang/serialization/MapCodec;
 
- 
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- Ldfb;a(Ldsf$a;)V
 
- 
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- Ldsd;a(Ldse;Ldbg;Liz;Levy;)Lewm;
 
- 
getHatchStage- Mappings:
- Namespace - Name - Mixin selector - named - getHatchStage- Lnet/minecraft/block/SnifferEggBlock;getHatchStage(Lnet/minecraft/block/BlockState;)I- intermediary - method_49827- Lnet/minecraft/class_8238;method_49827(Lnet/minecraft/class_2680;)I- official - m- Ldmj;m(Ldse;)I
 
- 
isReadyToHatch- Mappings:
- Namespace - Name - Mixin selector - named - isReadyToHatch- Lnet/minecraft/block/SnifferEggBlock;isReadyToHatch(Lnet/minecraft/block/BlockState;)Z- intermediary - method_49828- Lnet/minecraft/class_8238;method_49828(Lnet/minecraft/class_2680;)Z- official - n- Ldmj;n(Ldse;)Z
 
- 
scheduledTickCalled server-side when a block receives a scheduled tick. This can be used like a timer. Scheduled ticks are added using.invalid referenceWorldAccess#scheduleBlockTick(BlockPos, Block, int)Scheduled ticks are often used inside AbstractBlock.getStateForNeighborUpdate(net.minecraft.block.BlockState, net.minecraft.util.math.Direction, net.minecraft.block.BlockState, net.minecraft.world.WorldAccess, net.minecraft.util.math.BlockPos, net.minecraft.util.math.BlockPos).Here are some examples: - SugarCaneBlockchecks the placement requirement.
- DispenserBlockdispenses its content.
- CommandBlockexecutes its command.
- FrogspawnBlockspawns a tadpole.
- SoulSandBlockupdates a bubble column.
- FallingBlocktries to fall.
 - Overrides:
- scheduledTickin class- AbstractBlock
- 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- Ldsd;a(Ldse;Larf;Liz;Lazh;)V
 
- 
onBlockAddedpublic void onBlockAdded(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) Called server-side on the new block when the block state is changed. This includes block placement. When overriding this method,AbstractBlock.getStateForNeighborUpdate(net.minecraft.block.BlockState, net.minecraft.util.math.Direction, net.minecraft.block.BlockState, net.minecraft.world.WorldAccess, net.minecraft.util.math.BlockPos, net.minecraft.util.math.BlockPos)orAbstractBlock.neighborUpdate(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.block.Block, net.minecraft.util.math.BlockPos, boolean)should also be overridden. The method is used in the following cases:- When activating a redstone component on placement (used along with 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)
- When resetting a position-dependent state (see TargetBlock)
- When converting a block on placement (see WetSpongeBlock)
- When fire lights a portal
 - Overrides:
- onBlockAddedin class- AbstractBlock
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - onBlockAdded- Lnet/minecraft/block/AbstractBlock;onBlockAdded(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Z)V- intermediary - method_9615- Lnet/minecraft/class_4970;method_9615(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Z)V- official - b- Ldsd;b(Ldse;Ldca;Liz;Ldse;Z)V
 
- When activating a redstone component on placement (used along with 
- 
isAboveHatchBooster- Mappings:
- Namespace - Name - Mixin selector - named - isAboveHatchBooster- Lnet/minecraft/block/SnifferEggBlock;isAboveHatchBooster(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Z- intermediary - method_49826- Lnet/minecraft/class_8238;method_49826(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Z- official - a- Ldmj;a(Ldbg;Liz;)Z
 
 
-