Package net.minecraft.world.level.block
Class FrogspawnBlock
java.lang.Object
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.world.level.block.Block
net.minecraft.world.level.block.FrogspawnBlock
- All Implemented Interfaces:
- FeatureElement,- ItemLike,- IForgeBlock
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.world.level.block.BlockBlock.BlockStatePairKeyNested classes/interfaces inherited from class net.minecraft.world.level.block.state.BlockBehaviourBlockBehaviour.BlockStateBase, BlockBehaviour.OffsetFunction, BlockBehaviour.OffsetType, BlockBehaviour.Properties, BlockBehaviour.StateArgumentPredicate<A>, BlockBehaviour.StatePredicate
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final intprivate static final intprivate static final intprivate static intprivate static final intprivate static intprotected static final VoxelShapeFields inherited from class net.minecraft.world.level.block.BlockBLOCK_STATE_REGISTRY, INDESTRUCTIBLE, INSTANT, stateDefinition, UPDATE_ALL, UPDATE_ALL_IMMEDIATE, UPDATE_CLIENTS, UPDATE_IMMEDIATE, UPDATE_INVISIBLE, UPDATE_KNOWN_SHAPE, UPDATE_LIMIT, UPDATE_MOVE_BY_PISTON, UPDATE_NEIGHBORS, UPDATE_NONE, UPDATE_SUPPRESS_DROPSFields inherited from class net.minecraft.world.level.block.state.BlockBehaviourdrops, dynamicShape, explosionResistance, friction, hasCollision, isRandomlyTicking, jumpFactor, properties, requiredFeatures, soundType, speedFactor, UPDATE_SHAPE_ORDERFields inherited from interface net.minecraft.world.flag.FeatureElementFILTERED_REGISTRIES
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleancanSurvive(BlockState p_221209_, LevelReader p_221210_, BlockPos p_221211_) private voiddestroyBlock(Level p_221191_, BlockPos p_221192_) voidentityInside(BlockState p_221204_, Level p_221205_, BlockPos p_221206_, Entity p_221207_) private static intgetFrogspawnHatchDelay(RandomSource p_221186_) private doublegetRandomTadpolePositionOffset(RandomSource p_221225_) getShape(BlockState p_221199_, BlockGetter p_221200_, BlockPos p_221201_, CollisionContext p_221202_) private voidhatchFrogspawn(ServerLevel p_221182_, BlockPos p_221183_, RandomSource p_221184_) private static booleanmayPlaceOn(BlockGetter p_221188_, BlockPos p_221189_) voidonPlace(BlockState p_221227_, Level p_221228_, BlockPos p_221229_, BlockState p_221230_, boolean p_221231_) static voidstatic voidsetHatchDelay(int p_221179_, int p_221180_) private voidspawnTadpoles(ServerLevel p_221221_, BlockPos p_221222_, RandomSource p_221223_) voidtick(BlockState p_221194_, ServerLevel p_221195_, BlockPos p_221196_, RandomSource p_221197_) updateShape(BlockState p_221213_, Direction p_221214_, BlockState p_221215_, LevelAccessor p_221216_, BlockPos p_221217_, BlockPos p_221218_) Methods inherited from class net.minecraft.world.level.block.BlockanimateTick, appendHoverText, asBlock, asItem, box, builtInRegistryHolder, byItem, canSupportCenter, canSupportRigidBlock, canSustainPlant, createBlockStateDefinition, defaultBlockState, destroy, dropFromExplosion, dropResources, dropResources, dropResources, dropResources, fallOn, getCloneItemStack, getDescriptionId, getDrops, getDrops, getExplosionResistance, getFriction, getId, getJumpFactor, getName, getRenderPropertiesInternal, getShapeForEachState, getSoundType, getSpeedFactor, getStateDefinition, getStateForPlacement, handlePrecipitation, hasDynamicShape, initializeClient, isExceptionForConnection, isFaceFull, isPossibleToRespawnInThis, isRandomlyTicking, isShapeFullBlock, playerDestroy, playerWillDestroy, popExperience, popResource, popResourceFromFace, propagatesSkylightDown, pushEntitiesUp, registerDefaultState, setPlacedBy, shouldRenderFace, spawnDestroyParticles, stateById, stepOn, toString, tryDropExperience, updateEntityAfterFallOn, updateFromNeighbourShapes, updateOrDestroy, updateOrDestroy, wasExploded, withPropertiesOfMethods inherited from class net.minecraft.world.level.block.state.BlockBehaviourattack, canBeReplaced, canBeReplaced, defaultDestroyTime, defaultMapColor, getAnalogOutputSignal, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDirectSignal, getDrops, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getMenuProvider, getOcclusionShape, getRenderShape, getSeed, getShadeBrightness, getSignal, getVisualShape, hasAnalogOutputSignal, isAir, isCollisionShapeFullBlock, isOcclusionShapeFullBlock, isPathfindable, isSignalSource, mirror, neighborChanged, onProjectileHit, onRemove, randomTick, requiredFeatures, rotate, skipRendering, spawnAfterBreak, triggerEvent, updateIndirectNeighbourShapes, use, useShapeForLightOcclusionMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.flag.FeatureElementisEnabledMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlockaddLandingEffects, addRunningEffects, canBeHydrated, canConnectRedstone, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, collisionExtendsVertically, getAdjacentBlockPathType, getAppearance, getBeaconColorMultiplier, getBedDirection, getBlockPathType, getCloneItemStack, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFriction, getLightEmission, getMapColor, getPistonPushReaction, getRespawnPosition, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, hidesNeighborFace, isBed, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, isValidSpawn, makesOpenTrapdoorAboveClimbable, onBlockExploded, onBlockStateChange, onCaughtFire, onDestroyedByPlayer, onNeighborChange, onTreeGrow, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay, supportsExternalFaceHiding
- 
Field Details- 
MIN_TADPOLES_SPAWNprivate static final int MIN_TADPOLES_SPAWN- See Also:
 
- 
MAX_TADPOLES_SPAWNprivate static final int MAX_TADPOLES_SPAWN- See Also:
 
- 
DEFAULT_MIN_HATCH_TICK_DELAYprivate static final int DEFAULT_MIN_HATCH_TICK_DELAY- See Also:
 
- 
DEFAULT_MAX_HATCH_TICK_DELAYprivate static final int DEFAULT_MAX_HATCH_TICK_DELAY- See Also:
 
- 
SHAPE
- 
minHatchTickDelayprivate static int minHatchTickDelay
- 
maxHatchTickDelayprivate static int maxHatchTickDelay
 
- 
- 
Constructor Details- 
FrogspawnBlock
 
- 
- 
Method Details- 
getShapepublic VoxelShape getShape(BlockState p_221199_, BlockGetter p_221200_, BlockPos p_221201_, CollisionContext p_221202_) - Overrides:
- getShapein class- BlockBehaviour
 
- 
canSurvive- Overrides:
- canSurvivein class- BlockBehaviour
 
- 
onPlacepublic void onPlace(BlockState p_221227_, Level p_221228_, BlockPos p_221229_, BlockState p_221230_, boolean p_221231_) - Overrides:
- onPlacein class- BlockBehaviour
 
- 
getFrogspawnHatchDelay
- 
updateShapepublic BlockState updateShape(BlockState p_221213_, Direction p_221214_, BlockState p_221215_, LevelAccessor p_221216_, BlockPos p_221217_, BlockPos p_221218_) - Overrides:
- updateShapein class- BlockBehaviour
 
- 
tickpublic void tick(BlockState p_221194_, ServerLevel p_221195_, BlockPos p_221196_, RandomSource p_221197_) - Overrides:
- tickin class- BlockBehaviour
 
- 
entityInsidepublic void entityInside(BlockState p_221204_, Level p_221205_, BlockPos p_221206_, Entity p_221207_) - Overrides:
- entityInsidein class- BlockBehaviour
 
- 
mayPlaceOn
- 
hatchFrogspawn
- 
destroyBlock
- 
spawnTadpoles
- 
getRandomTadpolePositionOffset
- 
setHatchDelaypublic static void setHatchDelay(int p_221179_, int p_221180_) 
- 
setDefaultHatchDelaypublic static void setDefaultHatchDelay()
 
-