net.minecraft.world.level.block.state

public abstract class BlockBehaviour

implements FeatureElement

djg
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 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 BlockBehaviour$Properties
t()
properties()
method_54095()
getSettings()
m_305054_()
protected abstract com.mojang.serialization.MapCodec<? extends Block>
a()
codec()
method_53969()
getCodec()
m_304657_()
protected static <B extends Block> com.mojang.serialization.codecs.RecordCodecBuilder<B, BlockBehaviour$Properties>
u()
propertiesCodec()
method_54096()
createSettingsCodec()
m_305607_()
public static <B extends Block> com.mojang.serialization.MapCodec<B>
b(Function<djg$d, B> arg0)
simpleCodec(Function<BlockBehaviour$Properties, B> arg0)
method_54094(Function<class_4970$class_2251, B> arg0)
createCodec(Function<AbstractBlock$Settings, B> blockFromSettings)
m_306223_(Function<C_2056_$C_2061_, B> p_312290_)
public void
a(djh arg0, ctq arg1, hx 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(djh arg0, csv arg1, hx arg2, efh 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(djh arg0, ic arg1, djh arg2, ctq arg3, hx arg4, hx 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(djh arg0, djh arg1, ic 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(djh arg0, ctp arg1, hx arg2, cwq arg3, hx 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(djh arg0, ctp arg1, hx arg2, djh 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(djh arg0, ctp arg1, hx arg2, djh 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 void
a(djh arg0, ctp arg1, hx arg2, cth arg3, BiConsumer<cmy, hx> arg4)
onExplosionHit(BlockState arg0, Level arg1, BlockPos arg2, Explosion arg3, BiConsumer<ItemStack, BlockPos> arg4)
method_55124(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_1927 arg3, BiConsumer<class_1799, class_2338> arg4)
onExploded(BlockState state, World world, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> stackMerger)
m_304760_(C_2064_ p_311693_, C_1596_ p_311490_, C_4675_ p_312709_, C_1578_ p_311277_, BiConsumer<C_1391_, C_4675_> arg4)
public InteractionResult
a(djh arg0, ctp arg1, hx arg2, cfi arg3, bka arg4, elp 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(djh arg0, ctp arg1, hx 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_(djh arg0)
getRenderShape(BlockState arg0)
method_9604(class_2680 arg0)
getRenderType(BlockState state)
m_7514_(C_2064_ arg0)
public boolean
g_(djh arg0)
useShapeForLightOcclusion(BlockState arg0)
method_9526(class_2680 arg0)
hasSidedTransparency(BlockState state)
m_7923_(C_2064_ arg0)
public boolean
f_(djh arg0)
isSignalSource(BlockState arg0)
method_9506(class_2680 arg0)
emitsRedstonePower(BlockState state)
m_7899_(C_2064_ arg0)
public FluidState
c_(djh arg0)
getFluidState(BlockState arg0)
method_9545(class_2680 arg0)
getFluidState(BlockState state)
m_5888_(C_2064_ arg0)
public boolean
d_(djh arg0)
hasAnalogOutputSignal(BlockState arg0)
method_9498(class_2680 arg0)
hasComparatorOutput(BlockState state)
m_7278_(C_2064_ arg0)
public float
at_()
getMaxHorizontalOffset()
method_32913()
getMaxHorizontalModelOffset()
m_142740_()
public float
av_()
getMaxVerticalOffset()
method_37247()
getVerticalModelOffsetMultiplier()
m_142627_()
public FeatureFlagSet
m()
requiredFeatures()
method_45322()
getRequiredFeatures()
m_245183_()
public BlockState
a(djh arg0, ddc 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(djh arg0, dbm 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(djh arg0, cph 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(djh arg0, eeq 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(djh arg0, ehc$a arg1)
getDrops(BlockState arg0, LootParams$Builder arg1)
method_9560(class_2680 arg0, class_8567$class_8568 arg1)
getDroppedStacks(BlockState state, LootContextParameterSet$Builder builder)
m_49635_(C_2064_ p_287596_, C_286926_$C_286924_ arg1)
public long
a(djh arg0, hx 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(djh arg0, csv arg1, hx 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_(djh arg0, csv arg1, hx 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(djh arg0, csv arg1, hx 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(djh arg0, csv arg1, hx 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(djh arg0, ctp arg1, hx 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(djh arg0, cts arg1, hx 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
d(djh arg0, csv arg1, hx 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(djh arg0, ctp arg1, hx 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(djh arg0, csv arg1, hx arg2, ely 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
b(djh arg0, csv arg1, hx arg2, ely 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
c(djh arg0, csv arg1, hx 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(djh arg0, csv arg1, hx 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
c(djh arg0, csv arg1, hx arg2, ely 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(djh arg0, and arg1, hx arg2, auv 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(djh arg0, and arg1, hx arg2, auv 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(djh arg0, cfi arg1, csv arg2, hx 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(djh arg0, and arg1, hx arg2, cmy 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(djh arg0, ctp arg1, hx arg2, cfi 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(djh arg0, csv arg1, hx arg2, ic 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(djh arg0, ctp arg1, hx arg2, blv 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(djh arg0, csv arg1, hx arg2, ic 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
v()
getLootTable()
method_26162()
getLootTableId()
m_60589_()
public void
a(ctp arg0, djh arg1, elp arg2, cga 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 MapColor
w()
defaultMapColor()
method_26403()
getDefaultMapColor()
m_284356_()
public float
x()
defaultDestroyTime()
method_36555()
getHardness()
m_155943_()