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 intermediary net/minecraft/class_8238official cwsnamed net/minecraft/block/SnifferEggBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.NeighborGroupNested 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 TypeFieldDescriptionprivate static final intstatic final intstatic final IntPropertyprivate static final intprivate static final intprivate static final VoxelShapeFields inherited from class net.minecraft.block.Block
field_31022, field_31023, field_31024, field_31025, field_31035, FORCE_STATE, MOVED, NO_REDRAW, NOTIFY_ALL, NOTIFY_LISTENERS, NOTIFY_NEIGHBORS, REDRAW_ON_MAIN_THREAD, SKIP_DROPS, STATE_IDS, stateManagerFields inherited from class net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableId, randomTicks, requiredFeatures, resistance, settings, slipperiness, soundGroup, velocityMultiplierFields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
FEATURE_ENABLED_REGISTRY_KEYS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendProperties(StateManager.Builder<Block, BlockState> builder) Appends block state properties to this block.booleancanPathfindThrough(BlockState state, BlockView world, BlockPos pos, NavigationType type) Returns if an entity using navigation typetypecan navigate through this block.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.Block
afterBreak, 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, getSoundGroup, getStateFromRawId, getStateManager, getStateWithProperties, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasRandomTicks, hasTopRim, isFaceFullSquare, isShapeFullCube, isTransparent, 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.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPlaceAt, canReplace, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getHardness, getLootTableId, getMaxHorizontalModelOffset, getOpacity, getRaycastShape, getRenderingSeed, getRenderType, getRequiredFeatures, getSidesShape, getStateForNeighborUpdate, getStrongRedstonePower, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasComparatorOutput, hasSidedTransparency, isCullingShapeFullCube, isShapeFullCube, isSideInvisible, mirror, neighborUpdate, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, prepare, randomTick, 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
-
FINAL_HATCH_STAGE
public static final int FINAL_HATCH_STAGE- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_43249Lnet/minecraft/class_8238;field_43249:Iofficial aLcws;a:Inamed FINAL_HATCH_STAGELnet/minecraft/block/SnifferEggBlock;FINAL_HATCH_STAGE:I
-
HATCH
- Mappings:
Namespace Name Mixin selector intermediary field_43250Lnet/minecraft/class_8238;field_43250:Lnet/minecraft/class_2758;official bLcws;b:Ldcy;named HATCHLnet/minecraft/block/SnifferEggBlock;HATCH:Lnet/minecraft/state/property/IntProperty;
-
HATCHING_TIME
private static final int HATCHING_TIME- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_43251Lnet/minecraft/class_8238;field_43251:Iofficial cLcws;c:Inamed HATCHING_TIMELnet/minecraft/block/SnifferEggBlock;HATCHING_TIME:I
-
BOOSTED_HATCHING_TIME
private static final int BOOSTED_HATCHING_TIME- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_43252Lnet/minecraft/class_8238;field_43252:Iofficial dLcws;d:Inamed BOOSTED_HATCHING_TIMELnet/minecraft/block/SnifferEggBlock;BOOSTED_HATCHING_TIME:I
-
MAX_RANDOM_CRACK_TIME_OFFSET
private static final int MAX_RANDOM_CRACK_TIME_OFFSET- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_43253Lnet/minecraft/class_8238;field_43253:Iofficial eLcws;e:Inamed MAX_RANDOM_CRACK_TIME_OFFSETLnet/minecraft/block/SnifferEggBlock;MAX_RANDOM_CRACK_TIME_OFFSET:I
-
SHAPE
- Mappings:
Namespace Name Mixin selector intermediary field_43254Lnet/minecraft/class_8238;field_43254:Lnet/minecraft/class_265;official fLcws;f:Leet;named SHAPELnet/minecraft/block/SnifferEggBlock;SHAPE:Lnet/minecraft/util/shape/VoxelShape;
-
-
Constructor Details
-
SnifferEggBlock
- Mappings:
Namespace Name Mixin selector intermediary <init>Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)Vofficial <init>Ldbx;<init>(Ldbx$d;)Vnamed <init>Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)V
-
-
Method Details
-
appendProperties
Appends 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 classBlock- Mappings:
Namespace Name Mixin selector intermediary method_9515Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)Vofficial aLcpl;a(Ldbz$a;)Vnamed appendPropertiesLnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V
-
getOutlineShape
public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) - Overrides:
getOutlineShapein classAbstractBlock- Mappings:
Namespace Name Mixin selector intermediary method_9530Lnet/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 aLdbx;a(Ldby;Lclq;Lgu;Leef;)Leet;named getOutlineShapeLnet/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;
-
getHatchStage
- Mappings:
Namespace Name Mixin selector intermediary method_49827Lnet/minecraft/class_8238;method_49827(Lnet/minecraft/class_2680;)Iofficial hLcws;h(Ldby;)Inamed getHatchStageLnet/minecraft/block/SnifferEggBlock;getHatchStage(Lnet/minecraft/block/BlockState;)I
-
isReadyToHatch
- Mappings:
Namespace Name Mixin selector intermediary method_49828Lnet/minecraft/class_8238;method_49828(Lnet/minecraft/class_2680;)Zofficial nLcws;n(Ldby;)Znamed isReadyToHatchLnet/minecraft/block/SnifferEggBlock;isReadyToHatch(Lnet/minecraft/block/BlockState;)Z
-
scheduledTick
Called server-side when a block receives a scheduled tick. This can be used like a timer. Scheduled ticks are added usingWorldAccess.scheduleBlockTick(BlockPos, Block, int). Additionally,AbstractBlock.randomTick(net.minecraft.block.BlockState, net.minecraft.server.world.ServerWorld, net.minecraft.util.math.BlockPos, net.minecraft.util.math.random.Random)by default calls this method; overrideAbstractBlock.randomTick(net.minecraft.block.BlockState, net.minecraft.server.world.ServerWorld, net.minecraft.util.math.BlockPos, net.minecraft.util.math.random.Random)to disable this behavior.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 classAbstractBlock- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_9588Lnet/minecraft/class_4970;method_9588(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)Vofficial aLdbx;a(Ldby;Laif;Lgu;Lapf;)Vnamed 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;)V
-
onBlockAdded
public 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 classAbstractBlock- See Also:
- Mappings:
Namespace Name Mixin selector intermediary method_9615Lnet/minecraft/class_4970;method_9615(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Z)Vofficial bLdbx;b(Ldby;Lcmk;Lgu;Ldby;Z)Vnamed onBlockAddedLnet/minecraft/block/AbstractBlock;onBlockAdded(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Z)V
- When activating a redstone component on placement (used along with
-
isAboveHatchBooster
- Mappings:
Namespace Name Mixin selector intermediary method_49826Lnet/minecraft/class_8238;method_49826(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Zofficial aLcws;a(Lclq;Lgu;)Znamed isAboveHatchBoosterLnet/minecraft/block/SnifferEggBlock;isAboveHatchBooster(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Z
-