net.minecraft.world.level.block.state

public abstract class BlockBehaviour

implements FeatureElement

dbp
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.class_4970
net.minecraft.block.AbstractBlock
net.minecraft.src.C_2056_
net.minecraft.world.level.block.state.BlockBase

Field summary

Modifier and TypeField
protected static final Direction[]
aE
UPDATE_SHAPE_ORDER
field_23157
DIRECTIONS
f_60441_
protected final Material
aF
material
field_23158
material
f_60442_
protected final boolean
aG
hasCollision
field_23159
collidable
f_60443_
protected final float
aH
explosionResistance
field_23160
resistance
f_60444_
protected final boolean
aI
isRandomlyTicking
field_23161
randomTicks
f_60445_
protected final SoundType
aJ
soundType
field_23162
soundGroup
f_60446_
protected final float
aK
friction
field_23163
slipperiness
f_60447_
protected final float
aL
speedFactor
field_23164
velocityMultiplier
f_60448_
protected final float
aM
jumpFactor
field_23165
jumpVelocityMultiplier
f_60449_
protected final boolean
aN
dynamicShape
field_23154
dynamicBounds
f_60438_
protected final FeatureFlagSet
aO
requiredFeatures
field_40337
requiredFeatures
f_243733_
protected final BlockBehaviour$Properties
aP
properties
field_23155
settings
f_60439_
protected ResourceLocation
aQ
drops
field_23156
lootTableId
f_60440_

Constructor summary

ModifierConstructor
public (BlockBehaviour$Properties settings)

Method summary

Modifier and TypeMethod
public void
a(dbq arg0, cmj arg1, gt arg2, int arg3, int arg4)
updateIndirectNeighbourShapes(BlockState arg0, LevelAccessor arg1, BlockPos arg2, int arg3, int arg4)
method_9517(class_2680 arg0, class_1936 arg1, class_2338 arg2, int arg3, int arg4)
prepare(BlockState state, WorldAccess world, BlockPos pos, int flags, int maxUpdateDepth)
m_7742_(C_2064_ p_60521_, C_1598_ p_60522_, C_4675_ p_60523_, int p_60524_, int arg4)
public boolean
a(dbq arg0, clo arg1, gt arg2, dxa arg3)
isPathfindable(BlockState arg0, BlockGetter arg1, BlockPos arg2, PathComputationType arg3)
method_9516(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_10 arg3)
canPathfindThrough(BlockState state, BlockView world, BlockPos pos, NavigationType type)
m_7357_(C_2064_ p_60476_, C_1559_ p_60477_, C_4675_ p_60478_, C_2754_ arg3)
public BlockState
a(dbq arg0, gz arg1, dbq arg2, cmj arg3, gt arg4, gt arg5)
updateShape(BlockState arg0, Direction arg1, BlockState arg2, LevelAccessor arg3, BlockPos arg4, BlockPos arg5)
method_9559(class_2680 arg0, class_2350 arg1, class_2680 arg2, class_1936 arg3, class_2338 arg4, class_2338 arg5)
getStateForNeighborUpdate(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos)
m_7417_(C_2064_ p_60542_, C_4687_ p_60543_, C_2064_ p_60544_, C_1598_ p_60545_, C_4675_ p_60546_, C_4675_ arg5)
public boolean
a(dbq arg0, dbq arg1, gz arg2)
skipRendering(BlockState arg0, BlockState arg1, Direction arg2)
method_9522(class_2680 arg0, class_2680 arg1, class_2350 arg2)
isSideInvisible(BlockState state, BlockState stateFrom, Direction direction)
m_6104_(C_2064_ p_60533_, C_2064_ p_60534_, C_4687_ arg2)
public void
a(dbq arg0, cmi arg1, gt arg2, cpi arg3, gt arg4, boolean arg5)
neighborChanged(BlockState arg0, Level arg1, BlockPos arg2, Block arg3, BlockPos arg4, boolean arg5)
method_9612(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_2248 arg3, class_2338 arg4, boolean arg5)
neighborUpdate(BlockState state, World world, BlockPos pos, Block sourceBlock, BlockPos sourcePos, boolean notify)
m_6861_(C_2064_ p_60510_, C_1596_ p_60511_, C_4675_ p_60512_, C_1706_ p_60513_, C_4675_ p_60514_, boolean arg5)
public void
b(dbq arg0, cmi arg1, gt arg2, dbq arg3, boolean arg4)
onPlace(BlockState arg0, Level arg1, BlockPos arg2, BlockState arg3, boolean arg4)
method_9615(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_2680 arg3, boolean arg4)
onBlockAdded(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify)
m_6807_(C_2064_ p_60567_, C_1596_ p_60568_, C_4675_ p_60569_, C_2064_ p_60570_, boolean arg4)
public void
a(dbq arg0, cmi arg1, gt arg2, dbq arg3, boolean arg4)
onRemove(BlockState arg0, Level arg1, BlockPos arg2, BlockState arg3, boolean arg4)
method_9536(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_2680 arg3, boolean arg4)
onStateReplaced(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved)
m_6810_(C_2064_ p_60516_, C_1596_ p_60517_, C_4675_ p_60518_, C_2064_ p_60519_, boolean arg4)
public InteractionResult
a(dbq arg0, cmi arg1, gt arg2, bym arg3, bdx arg4, eda arg5)
use(BlockState arg0, Level arg1, BlockPos arg2, Player arg3, InteractionHand arg4, BlockHitResult arg5)
method_9534(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_1657 arg3, class_1268 arg4, class_3965 arg5)
onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
m_6227_(C_2064_ p_60504_, C_1596_ p_60505_, C_4675_ p_60506_, C_1141_ p_60507_, C_470_ p_60508_, C_3041_ arg5)
public boolean
a(dbq arg0, cmi arg1, gt arg2, int arg3, int arg4)
triggerEvent(BlockState arg0, Level arg1, BlockPos arg2, int arg3, int arg4)
method_9592(class_2680 arg0, class_1937 arg1, class_2338 arg2, int arg3, int arg4)
onSyncedBlockEvent(BlockState state, World world, BlockPos pos, int type, int data)
m_8133_(C_2064_ p_60491_, C_1596_ p_60492_, C_4675_ p_60493_, int p_60494_, int arg4)
public RenderShape
b_(dbq arg0)
getRenderShape(BlockState arg0)
method_9604(class_2680 arg0)
getRenderType(BlockState state)
m_7514_(C_2064_ arg0)
public boolean
g_(dbq arg0)
useShapeForLightOcclusion(BlockState arg0)
method_9526(class_2680 arg0)
hasSidedTransparency(BlockState state)
m_7923_(C_2064_ arg0)
public boolean
f_(dbq arg0)
isSignalSource(BlockState arg0)
method_9506(class_2680 arg0)
emitsRedstonePower(BlockState state)
m_7899_(C_2064_ arg0)
public PushReaction
d(dbq arg0)
getPistonPushReaction(BlockState arg0)
method_9527(class_2680 arg0)
getPistonBehavior(BlockState state)
m_5537_(C_2064_ arg0)
public FluidState
c_(dbq arg0)
getFluidState(BlockState arg0)
method_9545(class_2680 arg0)
getFluidState(BlockState state)
m_5888_(C_2064_ arg0)
public boolean
d_(dbq arg0)
hasAnalogOutputSignal(BlockState arg0)
method_9498(class_2680 arg0)
hasComparatorOutput(BlockState state)
m_7278_(C_2064_ arg0)
public float
am_()
getMaxHorizontalOffset()
method_32913()
getMaxHorizontalModelOffset()
m_142740_()
public float
ap_()
getMaxVerticalOffset()
method_37247()
getVerticalModelOffsetMultiplier()
m_142627_()
public FeatureFlagSet
m()
requiredFeatures()
method_45322()
getRequiredFeatures()
m_245183_()
public BlockState
a(dbq arg0, cvq arg1)
rotate(BlockState arg0, Rotation arg1)
method_9598(class_2680 arg0, class_2470 arg1)
rotate(BlockState state, BlockRotation rotation)
m_6843_(C_2064_ p_60531_, C_1886_ arg1)
public BlockState
a(dbq arg0, cua arg1)
mirror(BlockState arg0, Mirror arg1)
method_9569(class_2680 arg0, class_2415 arg1)
mirror(BlockState state, BlockMirror mirror)
m_6943_(C_2064_ p_60529_, C_1838_ arg1)
public boolean
a(dbq arg0, cic arg1)
canBeReplaced(BlockState arg0, BlockPlaceContext arg1)
method_9616(class_2680 arg0, class_1750 arg1)
canReplace(BlockState state, ItemPlacementContext context)
m_6864_(C_2064_ p_60471_, C_1445_ arg1)
public boolean
a(dbq arg0, dwi arg1)
canBeReplaced(BlockState arg0, Fluid arg1)
method_22358(class_2680 arg0, class_3611 arg1)
canBucketPlace(BlockState state, Fluid fluid)
m_5946_(C_2064_ p_60536_, C_2690_ arg1)
public List<ItemStack>
a(dbq arg0, dyr$a arg1)
getDrops(BlockState arg0, LootContext$Builder arg1)
method_9560(class_2680 arg0, class_47$class_48 arg1)
getDroppedStacks(BlockState state, LootContext$Builder builder)
m_7381_(C_2064_ p_60538_, C_2811_$C_2813_ arg1)
public long
a(dbq arg0, gt arg1)
getSeed(BlockState arg0, BlockPos arg1)
method_9535(class_2680 arg0, class_2338 arg1)
getRenderingSeed(BlockState state, BlockPos pos)
m_7799_(C_2064_ p_60540_, C_4675_ arg1)
public VoxelShape
f(dbq arg0, clo arg1, gt arg2)
getOcclusionShape(BlockState arg0, BlockGetter arg1, BlockPos arg2)
method_9571(class_2680 arg0, class_1922 arg1, class_2338 arg2)
getCullingShape(BlockState state, BlockView world, BlockPos pos)
m_7952_(C_2064_ p_60579_, C_1559_ p_60580_, C_4675_ arg2)
public VoxelShape
b_(dbq arg0, clo arg1, gt arg2)
getBlockSupportShape(BlockState arg0, BlockGetter arg1, BlockPos arg2)
method_25959(class_2680 arg0, class_1922 arg1, class_2338 arg2)
getSidesShape(BlockState state, BlockView world, BlockPos pos)
m_7947_(C_2064_ p_60582_, C_1559_ p_60583_, C_4675_ arg2)
public VoxelShape
a(dbq arg0, clo arg1, gt arg2)
getInteractionShape(BlockState arg0, BlockGetter arg1, BlockPos arg2)
method_9584(class_2680 arg0, class_1922 arg1, class_2338 arg2)
getRaycastShape(BlockState state, BlockView world, BlockPos pos)
m_6079_(C_2064_ p_60548_, C_1559_ p_60549_, C_4675_ arg2)
public int
g(dbq arg0, clo arg1, gt arg2)
getLightBlock(BlockState arg0, BlockGetter arg1, BlockPos arg2)
method_9505(class_2680 arg0, class_1922 arg1, class_2338 arg2)
getOpacity(BlockState state, BlockView world, BlockPos pos)
m_7753_(C_2064_ p_60586_, C_1559_ p_60587_, C_4675_ arg2)
public MenuProvider
b(dbq arg0, cmi arg1, gt arg2)
getMenuProvider(BlockState arg0, Level arg1, BlockPos arg2)
method_17454(class_2680 arg0, class_1937 arg1, class_2338 arg2)
createScreenHandlerFactory(BlockState state, World world, BlockPos pos)
m_7246_(C_2064_ p_60564_, C_1596_ p_60565_, C_4675_ arg2)
public boolean
a(dbq arg0, cml arg1, gt arg2)
canSurvive(BlockState arg0, LevelReader arg1, BlockPos arg2)
method_9558(class_2680 arg0, class_4538 arg1, class_2338 arg2)
canPlaceAt(BlockState state, WorldView world, BlockPos pos)
m_7898_(C_2064_ p_60526_, C_1599_ p_60527_, C_4675_ arg2)
public float
b(dbq arg0, clo arg1, gt arg2)
getShadeBrightness(BlockState arg0, BlockGetter arg1, BlockPos arg2)
method_9575(class_2680 arg0, class_1922 arg1, class_2338 arg2)
getAmbientOcclusionLightLevel(BlockState state, BlockView world, BlockPos pos)
m_7749_(C_2064_ p_60473_, C_1559_ p_60474_, C_4675_ arg2)
public int
a(dbq arg0, cmi arg1, gt arg2)
getAnalogOutputSignal(BlockState arg0, Level arg1, BlockPos arg2)
method_9572(class_2680 arg0, class_1937 arg1, class_2338 arg2)
getComparatorOutput(BlockState state, World world, BlockPos pos)
m_6782_(C_2064_ p_60488_, C_1596_ p_60489_, C_4675_ arg2)
public VoxelShape
a(dbq arg0, clo arg1, gt arg2, edj arg3)
getShape(BlockState arg0, BlockGetter arg1, BlockPos arg2, CollisionContext arg3)
method_9530(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_3726 arg3)
getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
m_5940_(C_2064_ p_60556_, C_1559_ p_60557_, C_4675_ p_60558_, C_3051_ arg3)
public VoxelShape
c(dbq arg0, clo arg1, gt arg2, edj arg3)
getCollisionShape(BlockState arg0, BlockGetter arg1, BlockPos arg2, CollisionContext arg3)
method_9549(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_3726 arg3)
getCollisionShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
m_5939_(C_2064_ p_60573_, C_1559_ p_60574_, C_4675_ p_60575_, C_3051_ arg3)
public boolean
a_(dbq arg0, clo arg1, gt arg2)
isCollisionShapeFullBlock(BlockState arg0, BlockGetter arg1, BlockPos arg2)
method_37403(class_2680 arg0, class_1922 arg1, class_2338 arg2)
isShapeFullCube(BlockState state, BlockView world, BlockPos pos)
m_180643_(C_2064_ p_181243_, C_1559_ p_181244_, C_4675_ arg2)
public boolean
h(dbq arg0, clo arg1, gt arg2)
isOcclusionShapeFullBlock(BlockState arg0, BlockGetter arg1, BlockPos arg2)
method_42326(class_2680 arg0, class_1922 arg1, class_2338 arg2)
isCullingShapeFullCube(BlockState state, BlockView world, BlockPos pos)
m_222958_(C_2064_ p_222960_, C_1559_ p_222961_, C_4675_ arg2)
public VoxelShape
b(dbq arg0, clo arg1, gt arg2, edj arg3)
getVisualShape(BlockState arg0, BlockGetter arg1, BlockPos arg2, CollisionContext arg3)
method_26159(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_3726 arg3)
getCameraCollisionShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
m_5909_(C_2064_ p_60480_, C_1559_ p_60481_, C_4675_ p_60482_, C_3051_ arg3)
public void
b(dbq arg0, aip arg1, gt arg2, apo arg3)
randomTick(BlockState arg0, ServerLevel arg1, BlockPos arg2, RandomSource arg3)
method_9514(class_2680 arg0, class_3218 arg1, class_2338 arg2, class_5819 arg3)
randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random)
m_213898_(C_2064_ p_222955_, C_12_ p_222956_, C_4675_ p_222957_, C_212974_ arg3)
public void
a(dbq arg0, aip arg1, gt arg2, apo arg3)
tick(BlockState arg0, ServerLevel arg1, BlockPos arg2, RandomSource arg3)
method_9588(class_2680 arg0, class_3218 arg1, class_2338 arg2, class_5819 arg3)
scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random)
m_213897_(C_2064_ p_222946_, C_12_ p_222947_, C_4675_ p_222948_, C_212974_ arg3)
public float
a(dbq arg0, bym arg1, clo arg2, gt arg3)
getDestroyProgress(BlockState arg0, Player arg1, BlockGetter arg2, BlockPos arg3)
method_9594(class_2680 arg0, class_1657 arg1, class_1922 arg2, class_2338 arg3)
calcBlockBreakingDelta(BlockState state, PlayerEntity player, BlockView world, BlockPos pos)
m_5880_(C_2064_ p_60467_, C_1141_ p_60468_, C_1559_ p_60469_, C_4675_ arg3)
public void
a(dbq arg0, aip arg1, gt arg2, cfv arg3, boolean arg4)
spawnAfterBreak(BlockState arg0, ServerLevel arg1, BlockPos arg2, ItemStack arg3, boolean arg4)
method_9565(class_2680 arg0, class_3218 arg1, class_2338 arg2, class_1799 arg3, boolean arg4)
onStacksDropped(BlockState state, ServerWorld world, BlockPos pos, ItemStack tool, boolean dropExperience)
m_213646_(C_2064_ p_222950_, C_12_ p_222951_, C_4675_ p_222952_, C_1391_ p_222953_, boolean arg4)
public void
a(dbq arg0, cmi arg1, gt arg2, bym arg3)
attack(BlockState arg0, Level arg1, BlockPos arg2, Player arg3)
method_9606(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_1657 arg3)
onBlockBreakStart(BlockState state, World world, BlockPos pos, PlayerEntity player)
m_6256_(C_2064_ p_60500_, C_1596_ p_60501_, C_4675_ p_60502_, C_1141_ arg3)
public int
a(dbq arg0, clo arg1, gt arg2, gz arg3)
getSignal(BlockState arg0, BlockGetter arg1, BlockPos arg2, Direction arg3)
method_9524(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_2350 arg3)
getWeakRedstonePower(BlockState state, BlockView world, BlockPos pos, Direction direction)
m_6378_(C_2064_ p_60484_, C_1559_ p_60485_, C_4675_ p_60486_, C_4687_ arg3)
public void
a(dbq arg0, cmi arg1, gt arg2, bfh arg3)
entityInside(BlockState arg0, Level arg1, BlockPos arg2, Entity arg3)
method_9548(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_1297 arg3)
onEntityCollision(BlockState state, World world, BlockPos pos, Entity entity)
m_7892_(C_2064_ p_60496_, C_1596_ p_60497_, C_4675_ p_60498_, C_507_ arg3)
public int
b(dbq arg0, clo arg1, gt arg2, gz arg3)
getDirectSignal(BlockState arg0, BlockGetter arg1, BlockPos arg2, Direction arg3)
method_9603(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_2350 arg3)
getStrongRedstonePower(BlockState state, BlockView world, BlockPos pos, Direction direction)
m_6376_(C_2064_ p_60560_, C_1559_ p_60561_, C_4675_ p_60562_, C_4687_ arg3)
public final ResourceLocation
s()
getLootTable()
method_26162()
getLootTableId()
m_60589_()
public void
a(cmi arg0, dbq arg1, eda arg2, bze arg3)
onProjectileHit(Level arg0, BlockState arg1, BlockHitResult arg2, Projectile arg3)
method_19286(class_1937 arg0, class_2680 arg1, class_3965 arg2, class_1676 arg3)
onProjectileHit(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile)
m_5581_(C_1596_ p_60454_, C_2064_ p_60455_, C_3041_ p_60456_, C_1167_ arg3)
public abstract Item
k()
asItem()
method_8389()
asItem()
m_5456_()
protected abstract Block
q()
asBlock()
method_26160()
asBlock()
m_7374_()
public MaterialColor
t()
defaultMaterialColor()
method_26403()
getDefaultMapColor()
m_60590_()
public float
u()
defaultDestroyTime()
method_36555()
getHardness()
m_155943_()