Class WhiteBlock
-
- 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 WhiteBlock extends Block implements EntityBlock
-
-
Field Summary
Fields Modifier and Type Field Description private final Holder.Reference<Block>
builtInRegistryHolder
protected final StateDefinition<Block, BlockState>
stateDefinition
private final BlockState
defaultBlockState
private final String
descriptionId
private final Item
item
protected final Boolean
hasCollision
protected final Float
explosionResistance
protected final Boolean
isRandomlyTicking
protected final SoundType
soundType
protected final Float
friction
protected final Float
speedFactor
protected final Float
jumpFactor
protected final Boolean
dynamicShape
protected final FeatureFlagSet
requiredFeatures
protected final BlockBehaviour.Properties
properties
protected final ResourceKey<LootTable>
drops
private final Supplier<ResourceKey<LootTable>>
lootTableSupplier
-
Constructor Summary
Constructors Constructor Description WhiteBlock()
-
Method Summary
Modifier and Type Method Description Integer
getLightBlock(BlockState state, BlockGetter worldIn, BlockPos pos)
WhiteBlockEntity
newBlockEntity(BlockPos pos, BlockState state)
Boolean
hasAnalogOutputSignal(BlockState state)
MenuProvider
getMenuProvider(BlockState state, Level worldIn, BlockPos pos)
Boolean
triggerEvent(BlockState state, Level world, BlockPos pos, Integer eventID, Integer eventParam)
Unit
onRemove(BlockState state, Level world, BlockPos pos, BlockState newState, Boolean isMoving)
Integer
getAnalogOutputSignal(BlockState blockState, Level world, BlockPos pos)
-
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, getBlockSupportShape, getCollisionShape, getDestroyProgress, getDirectSignal, getDrops, getFluidState, getInteractionShape, getLootTable, getMaxHorizontalOffset, getMaxVerticalOffset, getOcclusionShape, getRenderShape, getSeed, getShadeBrightness, getShape, getSignal, getSoundType, getVisualShape, isAir, isCollisionShapeFullBlock, isOcclusionShapeFullBlock, isPathfindable, isRandomlyTicking, isSignalSource, mirror, neighborChanged, onExplosionHit, onPlace, onProjectileHit, propagatesSkylightDown, properties, randomTick, requiredFeatures, rotate, skipRendering, spawnAfterBreak, tick, 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
-
getLightBlock
Integer getLightBlock(BlockState state, BlockGetter worldIn, BlockPos pos)
-
newBlockEntity
WhiteBlockEntity newBlockEntity(BlockPos pos, BlockState state)
-
hasAnalogOutputSignal
Boolean hasAnalogOutputSignal(BlockState state)
-
getMenuProvider
MenuProvider getMenuProvider(BlockState state, Level worldIn, BlockPos pos)
-
triggerEvent
Boolean triggerEvent(BlockState state, Level world, BlockPos pos, Integer eventID, Integer eventParam)
-
onRemove
Unit onRemove(BlockState state, Level world, BlockPos pos, BlockState newState, Boolean isMoving)
-
getAnalogOutputSignal
Integer getAnalogOutputSignal(BlockState blockState, Level world, BlockPos pos)
-
-
-
-