net.minecraft.world.level.block.state

public abstract class BlockBehaviour

implements FeatureElement

dzn
net.minecraft.world.level.block.state.BlockBehaviour
net.minecraft.class_4970
net.minecraft.block.AbstractBlock

Field summary

Modifier and TypeField
protected static final Direction[]
D
UPDATE_SHAPE_ORDER
field_23157
DIRECTIONS
protected final boolean
E
hasCollision
field_23159
collidable
protected final float
F
explosionResistance
field_23160
resistance
protected final boolean
G
isRandomlyTicking
field_23161
randomTicks
protected final SoundType
H
soundType
field_23162
soundGroup
protected final float
I
friction
field_23163
slipperiness
protected final float
J
speedFactor
field_23164
velocityMultiplier
protected final float
K
jumpFactor
field_23165
jumpVelocityMultiplier
protected final boolean
L
dynamicShape
field_23154
dynamicBounds
protected final FeatureFlagSet
M
requiredFeatures
field_40337
requiredFeatures
protected final BlockBehaviour$Properties
N
properties
field_23155
settings
protected final Optional<ResourceKey<LootTable>>
O
drops
field_23156
lootTableKey
protected final String
P
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<dzn$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(dzo arg0, diq arg1, iu 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(dzo arg0, ewk arg1)
isPathfindable(BlockState arg0, PathComputationType arg1)
method_9516(class_2680 arg0, class_10 arg1)
canPathfindThrough(BlockState state, NavigationType type)
protected BlockState
a(dzo arg0, dis arg1, dje arg2, iu arg3, ja arg4, iu arg5, dzo arg6, azt 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(dzo arg0, dzo arg1, ja 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(dzo arg0, dip arg1, iu arg2, dlu arg3, exd 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
a(dzo arg0, dip arg1, iu arg2, dzo 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(dzo arg0, aro arg1, iu arg2, boolean arg3)
affectNeighborsAfterRemoval(BlockState arg0, ServerLevel arg1, BlockPos arg2, boolean arg3)
method_66388(class_2680 arg0, class_3218 arg1, class_2338 arg2, boolean arg3)
onStateReplaced(BlockState state, ServerWorld world, BlockPos pos, boolean moved)
protected void
a(dzo arg0, aro arg1, iu arg2, dii arg3, BiConsumer<cys, iu> 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(dzo arg0, dip arg1, iu arg2, cqs arg3, fds 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(cys arg0, dzo arg1, dip arg2, iu arg3, cqs arg4, btx arg5, fds 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(dzo arg0, dip arg1, iu 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_(dzo arg0)
getRenderShape(BlockState arg0)
method_9604(class_2680 arg0)
getRenderType(BlockState state)
protected boolean
g_(dzo arg0)
useShapeForLightOcclusion(BlockState arg0)
method_9526(class_2680 arg0)
hasSidedTransparency(BlockState state)
protected boolean
f_(dzo arg0)
isSignalSource(BlockState arg0)
method_9506(class_2680 arg0)
emitsRedstonePower(BlockState state)
protected FluidState
b_(dzo arg0)
getFluidState(BlockState arg0)
method_9545(class_2680 arg0)
getFluidState(BlockState state)
protected boolean
c_(dzo arg0)
hasAnalogOutputSignal(BlockState arg0)
method_9498(class_2680 arg0)
hasComparatorOutput(BlockState state)
protected float
an_()
getMaxHorizontalOffset()
method_32913()
getMaxHorizontalModelOffset()
protected float
ap_()
getMaxVerticalOffset()
method_37247()
getVerticalModelOffsetMultiplier()
public FeatureFlagSet
k()
requiredFeatures()
method_45322()
getRequiredFeatures()
protected BlockState
a(dzo arg0, dsm arg1)
rotate(BlockState arg0, Rotation arg1)
method_9598(class_2680 arg0, class_2470 arg1)
rotate(BlockState state, BlockRotation rotation)
protected BlockState
a(dzo arg0, dqv arg1)
mirror(BlockState arg0, Mirror arg1)
method_9569(class_2680 arg0, class_2415 arg1)
mirror(BlockState state, BlockMirror mirror)
protected boolean
a(dzo arg0, dcl arg1)
canBeReplaced(BlockState arg0, BlockPlaceContext arg1)
method_9616(class_2680 arg0, class_1750 arg1)
canReplace(BlockState state, ItemPlacementContext context)
protected boolean
a(dzo arg0, evu arg1)
canBeReplaced(BlockState arg0, Fluid arg1)
method_22358(class_2680 arg0, class_3611 arg1)
canBucketPlace(BlockState state, Fluid fluid)
protected List<ItemStack>
a(dzo arg0, eyq$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(dzo arg0, iu arg1)
getSeed(BlockState arg0, BlockPos arg1)
method_9535(class_2680 arg0, class_2338 arg1)
getRenderingSeed(BlockState state, BlockPos pos)
protected VoxelShape
d_(dzo arg0)
getOcclusionShape(BlockState arg0)
method_9571(class_2680 arg0)
getCullingShape(BlockState state)
protected VoxelShape
b_(dzo arg0, dhv arg1, iu 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(dzo arg0, dhv arg1, iu 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_(dzo arg0)
getLightBlock(BlockState arg0)
method_9505(class_2680 arg0)
getOpacity(BlockState state)
protected MenuProvider
b(dzo arg0, dip arg1, iu 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(dzo arg0, dis arg1, iu 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(dzo arg0, dhv arg1, iu 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(dzo arg0, dip arg1, iu 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(dzo arg0, dhv arg1, iu arg2, feb 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(dzo arg0, dhv arg1, iu arg2, feb 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 VoxelShape
a(dzo arg0, dhv arg1, iu arg2, bwa arg3)
getEntityInsideCollisionShape(BlockState arg0, BlockGetter arg1, BlockPos arg2, Entity arg3)
method_64022(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_1297 arg3)
getInsideCollisionShape(BlockState state, BlockView arg1, BlockPos pos, Entity arg3)
protected boolean
a_(dzo arg0, dhv arg1, iu 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(dzo arg0, dhv arg1, iu arg2, feb 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(dzo arg0, aro arg1, iu arg2, azt 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(dzo arg0, aro arg1, iu arg2, azt 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(dzo arg0, cqs arg1, dhv arg2, iu 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(dzo arg0, aro arg1, iu arg2, cys 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_(dzo arg0, dip arg1, iu arg2, cqs 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(dzo arg0, dhv arg1, iu arg2, ja 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(dzo arg0, dip arg1, iu arg2, bwa 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 int
b(dzo arg0, dhv arg1, iu arg2, ja 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(dip arg0, dzo arg1, fds arg2, crm 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_(dzo arg0)
propagatesSkylightDown(BlockState arg0)
method_9579(class_2680 arg0)
isTransparent(BlockState state)
protected boolean
f(dzo arg0)
isRandomlyTicking(BlockState arg0)
method_9542(class_2680 arg0)
hasRandomTicks(BlockState state)
protected SoundType
h_(dzo arg0)
getSoundType(BlockState arg0)
method_9573(class_2680 arg0)
getSoundGroup(BlockState state)
protected ItemStack
a(dis arg0, iu arg1, dzo arg2, boolean arg3)
getCloneItemStack(LevelReader arg0, BlockPos arg1, BlockState arg2, boolean arg3)
method_9574(class_4538 arg0, class_2338 arg1, class_2680 arg2, boolean arg3)
getPickStack(WorldView world, BlockPos pos, BlockState state, boolean includeData)
public abstract Item
h()
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()