net.minecraft.world.level.block.state

public abstract class BlockBehaviour

implements FeatureElement

dtb
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 ResourceKey<LootTable>
aQ
drops
field_23156
lootTableKey
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<dtb$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_)
protected void
a(dtc arg0, dcx arg1, jd 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)
protected boolean
a(dtc arg0, ept arg1)
isPathfindable(BlockState arg0, PathComputationType arg1)
method_9516(class_2680 arg0, class_10 arg1)
canPathfindThrough(BlockState state, NavigationType type)
m_7357_(C_2064_ p_60478_, C_2754_ arg1)
protected BlockState
a(dtc arg0, ji arg1, dtc arg2, dcx arg3, jd arg4, jd 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)
protected boolean
a(dtc arg0, dtc arg1, ji 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)
protected void
a(dtc arg0, dcw arg1, jd arg2, dfy arg3, jd 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)
protected void
b(dtc arg0, dcw arg1, jd arg2, dtc 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)
protected void
a(dtc arg0, dcw arg1, jd arg2, dtc 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)
protected void
a(dtc arg0, dcw arg1, jd arg2, dco arg3, BiConsumer<cuq, jd> 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)
protected InteractionResult
a(dtc arg0, dcw arg1, jd arg2, cmx arg3, ewy arg4)
useWithoutItem(BlockState arg0, Level arg1, BlockPos arg2, Player arg3, BlockHitResult arg4)
method_55766(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_1657 arg3, class_3965 arg4)
onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit)
m_6227_(C_2064_ p_60504_, C_1596_ p_60505_, C_4675_ p_60506_, C_1141_ p_60508_, C_3041_ arg4)
protected ItemInteractionResult
a(cuq arg0, dtc arg1, dcw arg2, jd arg3, cmx arg4, bqq arg5, ewy arg6)
useItemOn(ItemStack arg0, BlockState arg1, Level arg2, BlockPos arg3, Player arg4, InteractionHand arg5, BlockHitResult arg6)
method_55765(class_1799 arg0, class_2680 arg1, class_1937 arg2, class_2338 arg3, class_1657 arg4, class_1268 arg5, class_3965 arg6)
onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)
m_51273_(C_1391_ p_335716_, C_2064_ p_336112_, C_1596_ p_328869_, C_4675_ p_332840_, C_1141_ p_336117_, C_470_ p_332723_, C_3041_ arg6)
protected boolean
a(dtc arg0, dcw arg1, jd 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)
protected RenderShape
a_(dtc arg0)
getRenderShape(BlockState arg0)
method_9604(class_2680 arg0)
getRenderType(BlockState state)
m_7514_(C_2064_ arg0)
protected boolean
f_(dtc arg0)
useShapeForLightOcclusion(BlockState arg0)
method_9526(class_2680 arg0)
hasSidedTransparency(BlockState state)
m_7923_(C_2064_ arg0)
protected boolean
e_(dtc arg0)
isSignalSource(BlockState arg0)
method_9506(class_2680 arg0)
emitsRedstonePower(BlockState state)
m_7899_(C_2064_ arg0)
protected FluidState
b_(dtc arg0)
getFluidState(BlockState arg0)
method_9545(class_2680 arg0)
getFluidState(BlockState state)
m_5888_(C_2064_ arg0)
protected boolean
c_(dtc arg0)
hasAnalogOutputSignal(BlockState arg0)
method_9498(class_2680 arg0)
hasComparatorOutput(BlockState state)
m_7278_(C_2064_ arg0)
protected float
av_()
getMaxHorizontalOffset()
method_32913()
getMaxHorizontalModelOffset()
m_142740_()
protected float
ax_()
getMaxVerticalOffset()
method_37247()
getVerticalModelOffsetMultiplier()
m_142627_()
public FeatureFlagSet
i()
requiredFeatures()
method_45322()
getRequiredFeatures()
m_245183_()
protected BlockState
a(dtc arg0, dmm 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)
protected BlockState
a(dtc arg0, dkv 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)
protected boolean
a(dtc arg0, cyd 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)
protected boolean
a(dtc arg0, epd 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)
protected List<ItemStack>
a(dtc arg0, eru$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)
protected long
a(dtc arg0, jd 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)
protected VoxelShape
f(dtc arg0, dcc arg1, jd 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)
protected VoxelShape
b_(dtc arg0, dcc arg1, jd 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)
protected VoxelShape
a(dtc arg0, dcc arg1, jd 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)
protected int
g(dtc arg0, dcc arg1, jd 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)
protected MenuProvider
b(dtc arg0, dcw arg1, jd 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)
protected boolean
a(dtc arg0, dcz arg1, jd 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)
protected float
d(dtc arg0, dcc arg1, jd 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)
protected int
a(dtc arg0, dcw arg1, jd 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)
protected VoxelShape
a(dtc arg0, dcc arg1, jd arg2, exh 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)
protected VoxelShape
b(dtc arg0, dcc arg1, jd arg2, exh 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)
protected boolean
c(dtc arg0, dcc arg1, jd 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)
protected boolean
h(dtc arg0, dcc arg1, jd 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)
protected VoxelShape
c(dtc arg0, dcc arg1, jd arg2, exh 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)
protected void
b(dtc arg0, aqu arg1, jd arg2, ayw 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)
protected void
a(dtc arg0, aqu arg1, jd arg2, ayw 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)
protected float
a(dtc arg0, cmx arg1, dcc arg2, jd 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)
protected void
a(dtc arg0, aqu arg1, jd arg2, cuq 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)
protected void
a_(dtc arg0, dcw arg1, jd arg2, cmx 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)
protected int
a(dtc arg0, dcc arg1, jd arg2, ji 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)
protected void
a(dtc arg0, dcw arg1, jd arg2, bsr 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)
protected int
b(dtc arg0, dcc arg1, jd arg2, ji 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 ResourceKey<LootTable>
v()
getLootTable()
method_26162()
getLootTableKey()
m_60589_()
protected void
a(dcw arg0, dtc arg1, ewy arg2, cnp 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)
protected boolean
a_(dtc arg0, dcc arg1, jd arg2)
propagatesSkylightDown(BlockState arg0, BlockGetter arg1, BlockPos arg2)
method_9579(class_2680 arg0, class_1922 arg1, class_2338 arg2)
isTransparent(BlockState state, BlockView world, BlockPos pos)
m_49099_(C_2064_ p_328736_, C_1559_ p_328401_, C_4675_ arg2)
protected boolean
d_(dtc arg0)
isRandomlyTicking(BlockState arg0)
method_9542(class_2680 arg0)
hasRandomTicks(BlockState state)
m_51695_(C_2064_ arg0)
protected SoundType
g_(dtc arg0)
getSoundType(BlockState arg0)
method_9573(class_2680 arg0)
getSoundGroup(BlockState state)
m_276989_(C_2064_ arg0)
public abstract Item
r()
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_()