net.minecraft.world.level.block.state

public abstract class BlockBehaviour

implements FeatureElement

dxu
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.class_4970
net.minecraft.block.AbstractBlock
net.minecraft.world.level.block.state.BlockBase

Field summary

Modifier and TypeField
protected static final Direction[]
aG
UPDATE_SHAPE_ORDER
field_23157
DIRECTIONS
protected final boolean
aH
hasCollision
field_23159
collidable
protected final float
aI
explosionResistance
field_23160
resistance
protected final boolean
aJ
isRandomlyTicking
field_23161
randomTicks
protected final SoundType
aK
soundType
field_23162
soundGroup
protected final float
aL
friction
field_23163
slipperiness
protected final float
aM
speedFactor
field_23164
velocityMultiplier
protected final float
aN
jumpFactor
field_23165
jumpVelocityMultiplier
protected final boolean
aO
dynamicShape
field_23154
dynamicBounds
protected final FeatureFlagSet
aP
requiredFeatures
field_40337
requiredFeatures
protected final BlockBehaviour$Properties
aQ
properties
field_23155
settings
protected final Optional<ResourceKey<LootTable>>
aR
drops
field_23156
lootTableKey
protected final String
aS
descriptionId
field_54005
translationKey

Constructor summary

ModifierConstructor
public (BlockBehaviour$Properties settings)

Method summary

Modifier and TypeMethod
public BlockBehaviour$Properties
s()
properties()
method_54095()
getSettings()
protected abstract com.mojang.serialization.MapCodec<? extends Block>
a()
codec()
method_53969()
getCodec()
protected static <B extends Block> com.mojang.serialization.codecs.RecordCodecBuilder<B, BlockBehaviour$Properties>
t()
propertiesCodec()
method_54096()
createSettingsCodec()
public static <B extends Block> com.mojang.serialization.MapCodec<B>
b(Function<dxu$d, B> arg0)
simpleCodec(Function<BlockBehaviour$Properties, B> arg0)
method_54094(Function<class_4970$class_2251, B> arg0)
createCodec(Function<AbstractBlock$Settings, B> blockFromSettings)
protected void
a(dxv arg0, dhj arg1, jh 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)
protected boolean
a(dxv arg0, eum arg1)
isPathfindable(BlockState arg0, PathComputationType arg1)
method_9516(class_2680 arg0, class_10 arg1)
canPathfindThrough(BlockState state, NavigationType type)
protected BlockState
a(dxv arg0, dhl arg1, dhx arg2, jh arg3, jm arg4, jh arg5, dxv arg6, bam arg7)
updateShape(BlockState arg0, LevelReader arg1, ScheduledTickAccess arg2, BlockPos arg3, Direction arg4, BlockPos arg5, BlockState arg6, RandomSource arg7)
method_9559(class_2680 arg0, class_4538 arg1, class_10225 arg2, class_2338 arg3, class_2350 arg4, class_2338 arg5, class_2680 arg6, class_5819 arg7)
getStateForNeighborUpdate(BlockState state, WorldView world, ScheduledTickView tickView, BlockPos pos, Direction direction, BlockPos neighborPos, BlockState neighborState, Random random)
protected boolean
b(dxv arg0, dxv arg1, jm 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)
protected void
a(dxv arg0, dhi arg1, jh arg2, dkm arg3, evf arg4, boolean arg5)
neighborChanged(BlockState arg0, Level arg1, BlockPos arg2, Block arg3, Orientation arg4, boolean arg5)
method_9612(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_2248 arg3, class_9904 arg4, boolean arg5)
neighborUpdate(BlockState state, World world, BlockPos pos, Block sourceBlock, WireOrientation wireOrientation, boolean notify)
protected void
b(dxv arg0, dhi arg1, jh arg2, dxv 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)
protected void
a(dxv arg0, dhi arg1, jh arg2, dxv 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)
protected void
a(dxv arg0, ash arg1, jh arg2, dha arg3, BiConsumer<cxp, jh> arg4)
onExplosionHit(BlockState arg0, ServerLevel arg1, BlockPos arg2, Explosion arg3, BiConsumer<ItemStack, BlockPos> arg4)
method_55124(class_2680 arg0, class_3218 arg1, class_2338 arg2, class_1927 arg3, BiConsumer<class_1799, class_2338> arg4)
onExploded(BlockState state, ServerWorld world, BlockPos pos, Explosion explosion, BiConsumer<ItemStack, BlockPos> stackMerger)
protected InteractionResult
a(dxv arg0, dhi arg1, jh arg2, cpx arg3, fbu 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)
protected InteractionResult
a(cxp arg0, dxv arg1, dhi arg2, jh arg3, cpx arg4, bti arg5, fbu 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)
protected boolean
a(dxv arg0, dhi arg1, jh 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)
protected RenderShape
a_(dxv arg0)
getRenderShape(BlockState arg0)
method_9604(class_2680 arg0)
getRenderType(BlockState state)
protected boolean
g_(dxv arg0)
useShapeForLightOcclusion(BlockState arg0)
method_9526(class_2680 arg0)
hasSidedTransparency(BlockState state)
protected boolean
f_(dxv arg0)
isSignalSource(BlockState arg0)
method_9506(class_2680 arg0)
emitsRedstonePower(BlockState state)
protected FluidState
b_(dxv arg0)
getFluidState(BlockState arg0)
method_9545(class_2680 arg0)
getFluidState(BlockState state)
protected boolean
c_(dxv arg0)
hasAnalogOutputSignal(BlockState arg0)
method_9498(class_2680 arg0)
hasComparatorOutput(BlockState state)
protected float
as_()
getMaxHorizontalOffset()
method_32913()
getMaxHorizontalModelOffset()
protected float
au_()
getMaxVerticalOffset()
method_37247()
getVerticalModelOffsetMultiplier()
public FeatureFlagSet
i()
requiredFeatures()
method_45322()
getRequiredFeatures()
protected BlockState
a(dxv arg0, drc arg1)
rotate(BlockState arg0, Rotation arg1)
method_9598(class_2680 arg0, class_2470 arg1)
rotate(BlockState state, BlockRotation rotation)
protected BlockState
a(dxv arg0, dpl arg1)
mirror(BlockState arg0, Mirror arg1)
method_9569(class_2680 arg0, class_2415 arg1)
mirror(BlockState state, BlockMirror mirror)
protected boolean
a(dxv arg0, dbg arg1)
canBeReplaced(BlockState arg0, BlockPlaceContext arg1)
method_9616(class_2680 arg0, class_1750 arg1)
canReplace(BlockState state, ItemPlacementContext context)
protected boolean
a(dxv arg0, etw arg1)
canBeReplaced(BlockState arg0, Fluid arg1)
method_22358(class_2680 arg0, class_3611 arg1)
canBucketPlace(BlockState state, Fluid fluid)
protected List<ItemStack>
a(dxv arg0, ews$a arg1)
getDrops(BlockState arg0, LootParams$Builder arg1)
method_9560(class_2680 arg0, class_8567$class_8568 arg1)
getDroppedStacks(BlockState state, LootWorldContext$Builder builder)
protected long
a(dxv arg0, jh arg1)
getSeed(BlockState arg0, BlockPos arg1)
method_9535(class_2680 arg0, class_2338 arg1)
getRenderingSeed(BlockState state, BlockPos pos)
protected VoxelShape
d_(dxv arg0)
getOcclusionShape(BlockState arg0)
method_9571(class_2680 arg0)
getCullingShape(BlockState state)
protected VoxelShape
b_(dxv arg0, dgn arg1, jh 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)
protected VoxelShape
a(dxv arg0, dgn arg1, jh 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)
protected int
i_(dxv arg0)
getLightBlock(BlockState arg0)
method_9505(class_2680 arg0)
getOpacity(BlockState state)
protected MenuProvider
b(dxv arg0, dhi arg1, jh 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)
protected boolean
a(dxv arg0, dhl arg1, jh 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)
protected float
c(dxv arg0, dgn arg1, jh 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)
protected int
a(dxv arg0, dhi arg1, jh 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)
protected VoxelShape
a(dxv arg0, dgn arg1, jh arg2, fcd 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)
protected VoxelShape
b(dxv arg0, dgn arg1, jh arg2, fcd 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)
protected boolean
a_(dxv arg0, dgn arg1, jh 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)
protected VoxelShape
c(dxv arg0, dgn arg1, jh arg2, fcd 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)
protected void
b(dxv arg0, ash arg1, jh arg2, bam 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)
protected void
a(dxv arg0, ash arg1, jh arg2, bam 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)
protected float
a(dxv arg0, cpx arg1, dgn arg2, jh 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)
protected void
a(dxv arg0, ash arg1, jh arg2, cxp 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)
protected void
a_(dxv arg0, dhi arg1, jh arg2, cpx 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)
protected int
a(dxv arg0, dgn arg1, jh arg2, jm 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)
protected void
a(dxv arg0, dhi arg1, jh arg2, bvk 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)
protected VoxelShape
a_(dxv arg0, dhi arg1, jh arg2)
getEntityInsideCollisionShape(BlockState arg0, Level arg1, BlockPos arg2)
method_64022(class_2680 arg0, class_1937 arg1, class_2338 arg2)
getInsideCollisionShape(BlockState state, World world, BlockPos pos)
protected int
b(dxv arg0, dgn arg1, jh arg2, jm 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)
public final Optional<ResourceKey<LootTable>>
u()
getLootTable()
method_26162()
getLootTableKey()
public final String
v()
getDescriptionId()
method_63499()
getTranslationKey()
protected void
a(dhi arg0, dxv arg1, fbu arg2, cqq 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)
protected boolean
e_(dxv arg0)
propagatesSkylightDown(BlockState arg0)
method_9579(class_2680 arg0)
isTransparent(BlockState state)
protected boolean
f(dxv arg0)
isRandomlyTicking(BlockState arg0)
method_9542(class_2680 arg0)
hasRandomTicks(BlockState state)
protected SoundType
h_(dxv arg0)
getSoundType(BlockState arg0)
method_9573(class_2680 arg0)
getSoundGroup(BlockState state)
public abstract Item
j()
asItem()
method_8389()
asItem()
protected abstract Block
o()
asBlock()
method_26160()
asBlock()
public MapColor
w()
defaultMapColor()
method_26403()
getDefaultMapColor()
public float
x()
defaultDestroyTime()
method_36555()
getHardness()