Class ShadowBugBlock
-
- All Implemented Interfaces:
-
net.minecraft.world.flag.FeatureElement,net.minecraft.world.level.ItemLike,net.minecraft.world.level.block.EntityBlock,net.neoforged.neoforge.common.extensions.IBlockExtension
public final class ShadowBugBlock extends TickedBlock implements EntityBlock
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classShadowBugBlock.Companion
-
Field Summary
Fields Modifier and Type Field Description private final IntegertickDelayprivate final Holder.Reference<Block>builtInRegistryHolderprotected final StateDefinition<Block, BlockState>stateDefinitionprivate final BlockStatedefaultBlockStateprivate final StringdescriptionIdprivate final Itemitemprotected final BooleanhasCollisionprotected final FloatexplosionResistanceprotected final BooleanisRandomlyTickingprotected final SoundTypesoundTypeprotected final Floatfrictionprotected final FloatspeedFactorprotected final FloatjumpFactorprotected final BooleandynamicShapeprotected final FeatureFlagSetrequiredFeaturesprotected final BlockBehaviour.Propertiespropertiesprotected final ResourceKey<LootTable>dropsprivate final Supplier<ResourceKey<LootTable>>lootTableSupplierpublic final static ShadowBugBlock.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description ShadowBugBlock(BlockBehaviour.Properties properties)
-
Method Summary
Modifier and Type Method Description BooleanskipRendering(BlockState state, BlockState adjacentBlockState, Direction side)IntegergetLightBlock(BlockState state, BlockGetter worldIn, BlockPos pos)VoxelShapegetVisualShape(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context)RenderShapegetRenderShape(BlockState state)BooleanpropagatesSkylightDown(BlockState state, BlockGetter level, BlockPos pos)Unittick(BlockState state, ServerLevel level, BlockPos pos, RandomSource random)ShadowBugBlockEntitynewBlockEntity(BlockPos pos, BlockState state)-
Methods inherited from class dev.wendigodrip.thebrokenscript.api.blocks.TickedBlock
getTickDelay, onPlace -
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, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getMenuProvider, getOcclusionShape, getSeed, getShadeBrightness, getShape, getSignal, getSoundType, hasAnalogOutputSignal, isAir, isCollisionShapeFullBlock, isOcclusionShapeFullBlock, isPathfindable, isRandomlyTicking, isSignalSource, mirror, neighborChanged, onExplosionHit, onProjectileHit, onRemove, properties, randomTick, requiredFeatures, rotate, 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 net.minecraft.world.level.block.EntityBlock
getListener, getTicker -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
skipRendering
Boolean skipRendering(BlockState state, BlockState adjacentBlockState, Direction side)
-
getLightBlock
Integer getLightBlock(BlockState state, BlockGetter worldIn, BlockPos pos)
-
getVisualShape
VoxelShape getVisualShape(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context)
-
getRenderShape
RenderShape getRenderShape(BlockState state)
-
propagatesSkylightDown
Boolean propagatesSkylightDown(BlockState state, BlockGetter level, BlockPos pos)
-
newBlockEntity
ShadowBugBlockEntity newBlockEntity(BlockPos pos, BlockState state)
-
-
-
-