Class TickedBlock

  • All Implemented Interfaces:
    net.minecraft.world.flag.FeatureElement , net.minecraft.world.level.ItemLike , net.neoforged.neoforge.common.extensions.IBlockExtension

    
    public class TickedBlock
    extends Block
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      TickedBlock(BlockBehaviour.Properties properties, Integer tickDelay)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Integer getTickDelay()
      Unit onPlace(BlockState state, Level world, BlockPos pos, BlockState oldState, Boolean moving)
      Unit tick(BlockState state, ServerLevel world, BlockPos pos, RandomSource random)
      • Methods inherited from class net.minecraft.world.level.block.Block

        animateTick, appendHoverText, asBlock, asItem, builtInRegistryHolder, codec, createBlockStateDefinition, defaultBlockState, destroy, dropFromExplosion, fallOn, getCloneItemStack, getDescriptionId, getExplosionResistance, getFriction, getJumpFactor, getName, getShapeForEachState, getSpeedFactor, getStateDefinition, getStateForPlacement, handlePrecipitation, hasDynamicShape, initializeClient, isPossibleToRespawnInThis, playerDestroy, playerWillDestroy, popExperience, registerDefaultState, setPlacedBy, spawnDestroyParticles, stepOn, toString, tryDropExperience, updateEntityAfterFallOn, wasExploded, withPropertiesOf
      • Methods inherited from class net.minecraft.world.level.block.state.BlockBehaviour

        attack, canBeReplaced, canBeReplaced, canSurvive, defaultDestroyTime, defaultMapColor, entityInside, getAnalogOutputSignal, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDirectSignal, getDrops, getFluidState, getInteractionShape, getLightBlock, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getMenuProvider, getOcclusionShape, getRenderShape, getSeed, getShadeBrightness, getShape, getSignal, getSoundType, getVisualShape, hasAnalogOutputSignal, isAir, isCollisionShapeFullBlock, isOcclusionShapeFullBlock, isPathfindable, isRandomlyTicking, isSignalSource, mirror, neighborChanged, onExplosionHit, onProjectileHit, onRemove, propagatesSkylightDown, properties, randomTick, requiredFeatures, rotate, skipRendering, spawnAfterBreak, triggerEvent, updateIndirectNeighbourShapes, updateShape, useItemOn, useShapeForLightOcclusion, useWithoutItem
      • Methods inherited from class net.minecraft.world.flag.FeatureElement

        isEnabled
      • Methods inherited from class net.neoforged.neoforge.common.extensions.IBlockExtension

        addLandingEffects, addRunningEffects, canBeHydrated, canConnectRedstone, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, canSustainPlant, collisionExtendsVertically, getAdjacentBlockPathType, getAppearance, getBeaconColorMultiplier, getBedDirection, getBlockPathType, getBubbleColumnDirection, getCloneItemStack, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getFireSpreadSpeed, getFlammability, getFriction, getLightEmission, getMapColor, getPistonPushReaction, getRespawnPosition, getSoundType, getStateAtViewpoint, getToolModifiedState, getWeakChanges, hasDynamicLightEmission, hidesNeighborFace, isBed, isBurning, isConduitFrame, isEmpty, isFertile, isFireSource, isFlammable, isLadder, isPortalFrame, isScaffolding, isSlimeBlock, isStickyBlock, makesOpenTrapdoorAboveClimbable, onBlockExploded, onBlockStateChange, onCaughtFire, onDestroyedByPlayer, onDestroyedByPushReaction, onNeighborChange, onTreeGrow, rotate, self, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay, shouldHideAdjacentFluidFace, supportsExternalFaceHiding
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TickedBlock

        TickedBlock(BlockBehaviour.Properties properties, Integer tickDelay)
    • Method Detail

      • onPlace

         Unit onPlace(BlockState state, Level world, BlockPos pos, BlockState oldState, Boolean moving)
      • tick

         Unit tick(BlockState state, ServerLevel world, BlockPos pos, RandomSource random)