net.minecraft.world.level.block.state

public abstract class BlockBehaviour

cks
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[]
aF
UPDATE_SHAPE_ORDER
field_23157
DIRECTIONS
f_60441_
protected final Material
aG
material
field_23158
material
f_60442_
protected final boolean
aH
hasCollision
field_23159
collidable
f_60443_
protected final float
aI
explosionResistance
field_23160
resistance
f_60444_
protected final boolean
aJ
isRandomlyTicking
field_23161
randomTicks
f_60445_
protected final SoundType
aK
soundType
field_23162
soundGroup
f_60446_
protected final float
aL
friction
field_23163
slipperiness
f_60447_
protected final float
aM
speedFactor
field_23164
velocityMultiplier
f_60448_
protected final float
aN
jumpFactor
field_23165
jumpVelocityMultiplier
f_60449_
protected final boolean
aO
dynamicShape
field_23154
dynamicBounds
f_60438_
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(ckt arg0, bwr arg1, gg 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(ckt arg0, bvu arg1, gg arg2, dhb 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(ckt arg0, gl arg1, ckt arg2, bwr arg3, gg arg4, gg 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)
updateState(IBlockData arg0, EnumDirection arg1, IBlockData arg2, GeneratorAccess arg3, BlockPosition arg4, BlockPosition arg5)
public boolean
a(ckt arg0, ckt arg1, gl 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(ckt arg0, bwq arg1, gg arg2, bzp arg3, gg 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 block, BlockPos fromPos, 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)
doPhysics(IBlockData arg0, World arg1, BlockPosition arg2, Block arg3, BlockPosition arg4, boolean arg5)
public void
b(ckt arg0, bwq arg1, gg arg2, ckt 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)
onPlace(IBlockData arg0, World arg1, BlockPosition arg2, IBlockData arg3, boolean arg4)
public void
a(ckt arg0, bwq arg1, gg arg2, ckt 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)
remove(IBlockData arg0, World arg1, BlockPosition arg2, IBlockData arg3, boolean arg4)
public InteractionResult
a(ckt arg0, bwq arg1, gg arg2, bke arg3, asa arg4, dmw 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)
interact(IBlockData arg0, World arg1, BlockPosition arg2, EntityHuman arg3, EnumHand arg4, MovingObjectPositionBlock arg5)
public boolean
a(ckt arg0, bwq arg1, gg 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_(ckt arg0)
getRenderShape(BlockState arg0)
method_9604(class_2680 arg0)
getRenderType(BlockState state)
m_7514_(C_2064_ arg0)
public boolean
g_(ckt arg0)
useShapeForLightOcclusion(BlockState arg0)
method_9526(class_2680 arg0)
hasSidedTransparency(BlockState state)
m_7923_(C_2064_ arg0)
public boolean
f_(ckt arg0)
isSignalSource(BlockState arg0)
method_9506(class_2680 arg0)
emitsRedstonePower(BlockState state)
m_7899_(C_2064_ arg0)
isPowerSource(IBlockData arg0)
public PushReaction
d(ckt arg0)
getPistonPushReaction(BlockState arg0)
method_9527(class_2680 arg0)
getPistonBehavior(BlockState state)
m_5537_(C_2064_ arg0)
getPushReaction(IBlockData arg0)
public FluidState
c_(ckt arg0)
getFluidState(BlockState arg0)
method_9545(class_2680 arg0)
getFluidState(BlockState state)
m_5888_(C_2064_ arg0)
public boolean
d_(ckt arg0)
hasAnalogOutputSignal(BlockState arg0)
method_9498(class_2680 arg0)
hasComparatorOutput(BlockState state)
m_7278_(C_2064_ arg0)
isComplexRedstone(IBlockData arg0)
public BlockBehaviour$OffsetType
S_()
getOffsetType()
method_16841()
getOffsetType()
m_5858_()
public float
U_()
getMaxHorizontalOffset()
method_32913()
getMaxModelOffset()
m_142740_()
public float
X_()
getMaxVerticalOffset()
method_37247()
method_37247()
m_142627_()
public BlockState
a(ckt arg0, cfl 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(ckt arg0, cdy 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(ckt arg0, bsq 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(ckt arg0, der 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(ckt arg0, dip$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(ckt arg0, gg 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
b_(ckt arg0, bvu arg1, gg 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
f(ckt arg0, bvu arg1, gg 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(ckt arg0, bvu arg1, gg 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(ckt arg0, bvu arg1, gg 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(ckt arg0, bwq arg1, gg 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)
getInventory(IBlockData arg0, World arg1, BlockPosition arg2)
public boolean
a(ckt arg0, bwt arg1, gg 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)
canPlace(IBlockData arg0, IWorldReader arg1, BlockPosition arg2)
public float
b(ckt arg0, bvu arg1, gg 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(ckt arg0, bwq arg1, gg 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(ckt arg0, bvu arg1, gg arg2, dnf 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(ckt arg0, bvu arg1, gg arg2, dnf 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_(ckt arg0, bvu arg1, gg 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 VoxelShape
b(ckt arg0, bvu arg1, gg arg2, dnf 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(ckt arg0, abr arg1, gg arg2, Random arg3)
randomTick(BlockState arg0, ServerLevel arg1, BlockPos arg2, Random arg3)
method_9514(class_2680 arg0, class_3218 arg1, class_2338 arg2, Random arg3)
randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random)
m_7455_(C_2064_ p_60552_, C_12_ p_60553_, C_4675_ p_60554_, Random arg3)
tick(IBlockData arg0, WorldServer arg1, BlockPosition arg2, Random arg3)
public void
a(ckt arg0, abr arg1, gg arg2, Random arg3)
tick(BlockState arg0, ServerLevel arg1, BlockPos arg2, Random arg3)
method_9588(class_2680 arg0, class_3218 arg1, class_2338 arg2, Random arg3)
scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random)
m_7458_(C_2064_ p_60463_, C_12_ p_60464_, C_4675_ p_60465_, Random arg3)
tickAlways(IBlockData arg0, WorldServer arg1, BlockPosition arg2, Random arg3)
public float
a(ckt arg0, bke arg1, bvu arg2, gg 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)
getDamage(IBlockData arg0, EntityHuman arg1, IBlockAccess arg2, BlockPosition arg3)
public void
a(ckt arg0, abr arg1, gg arg2, bqq arg3)
spawnAfterBreak(BlockState arg0, ServerLevel arg1, BlockPos arg2, ItemStack arg3)
method_9565(class_2680 arg0, class_3218 arg1, class_2338 arg2, class_1799 arg3)
onStacksDropped(BlockState state, ServerWorld world, BlockPos pos, ItemStack stack)
m_8101_(C_2064_ p_60459_, C_12_ p_60460_, C_4675_ p_60461_, C_1391_ arg3)
dropNaturally(IBlockData arg0, WorldServer arg1, BlockPosition arg2, ItemStack arg3)
public void
a(ckt arg0, bwq arg1, gg arg2, bke 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)
attack(IBlockData arg0, World arg1, BlockPosition arg2, EntityHuman arg3)
public int
a(ckt arg0, bvu arg1, gg arg2, gl 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(ckt arg0, bwq arg1, gg arg2, atg 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(ckt arg0, bvu arg1, gg arg2, gl 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
r()
getLootTable()
method_26162()
getLootTableId()
m_60589_()
public void
a(bwq arg0, ckt arg1, dmw arg2, bku 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_()
getItem()
protected abstract Block
p()
asBlock()
method_26160()
asBlock()
m_7374_()
public MaterialColor
s()
defaultMaterialColor()
method_26403()
getDefaultMapColor()
m_60590_()
public float
t()
defaultDestroyTime()
method_36555()
getHardness()
m_155943_()