net.minecraft.world.level.block.state

public abstract class BlockBehaviour

implements FeatureElement

dwx
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<dwx$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(dwy arg0, dgk arg1, ji 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(dwy arg0, etp arg1)
isPathfindable(BlockState arg0, PathComputationType arg1)
method_9516(class_2680 arg0, class_10 arg1)
canPathfindThrough(BlockState state, NavigationType type)
protected BlockState
a(dwy arg0, dgm arg1, dgy arg2, ji arg3, jn arg4, ji arg5, dwy arg6, azh 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(dwy arg0, dwy arg1, jn 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(dwy arg0, dgj arg1, ji arg2, djn arg3, eui 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(dwy arg0, dgj arg1, ji arg2, dwy 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(dwy arg0, dgj arg1, ji arg2, dwy 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(dwy arg0, ard arg1, ji arg2, dgb arg3, BiConsumer<cwq, ji> 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(dwy arg0, dgj arg1, ji arg2, coy arg3, fax 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(cwq arg0, dwy arg1, dgj arg2, ji arg3, coy arg4, bsk arg5, fax 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(dwy arg0, dgj arg1, ji 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_(dwy arg0)
getRenderShape(BlockState arg0)
method_9604(class_2680 arg0)
getRenderType(BlockState state)
protected boolean
g_(dwy arg0)
useShapeForLightOcclusion(BlockState arg0)
method_9526(class_2680 arg0)
hasSidedTransparency(BlockState state)
protected boolean
f_(dwy arg0)
isSignalSource(BlockState arg0)
method_9506(class_2680 arg0)
emitsRedstonePower(BlockState state)
protected FluidState
b_(dwy arg0)
getFluidState(BlockState arg0)
method_9545(class_2680 arg0)
getFluidState(BlockState state)
protected boolean
c_(dwy arg0)
hasAnalogOutputSignal(BlockState arg0)
method_9498(class_2680 arg0)
hasComparatorOutput(BlockState state)
protected float
ar_()
getMaxHorizontalOffset()
method_32913()
getMaxHorizontalModelOffset()
protected float
at_()
getMaxVerticalOffset()
method_37247()
getVerticalModelOffsetMultiplier()
public FeatureFlagSet
i()
requiredFeatures()
method_45322()
getRequiredFeatures()
protected BlockState
a(dwy arg0, dqf arg1)
rotate(BlockState arg0, Rotation arg1)
method_9598(class_2680 arg0, class_2470 arg1)
rotate(BlockState state, BlockRotation rotation)
protected BlockState
a(dwy arg0, dom arg1)
mirror(BlockState arg0, Mirror arg1)
method_9569(class_2680 arg0, class_2415 arg1)
mirror(BlockState state, BlockMirror mirror)
protected boolean
a(dwy arg0, dah arg1)
canBeReplaced(BlockState arg0, BlockPlaceContext arg1)
method_9616(class_2680 arg0, class_1750 arg1)
canReplace(BlockState state, ItemPlacementContext context)
protected boolean
a(dwy arg0, esz arg1)
canBeReplaced(BlockState arg0, Fluid arg1)
method_22358(class_2680 arg0, class_3611 arg1)
canBucketPlace(BlockState state, Fluid fluid)
protected List<ItemStack>
a(dwy arg0, evv$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(dwy arg0, ji arg1)
getSeed(BlockState arg0, BlockPos arg1)
method_9535(class_2680 arg0, class_2338 arg1)
getRenderingSeed(BlockState state, BlockPos pos)
protected VoxelShape
d_(dwy arg0)
getOcclusionShape(BlockState arg0)
method_9571(class_2680 arg0)
getCullingShape(BlockState state)
protected VoxelShape
b_(dwy arg0, dfo arg1, ji 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(dwy arg0, dfo arg1, ji 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_(dwy arg0)
getLightBlock(BlockState arg0)
method_9505(class_2680 arg0)
getOpacity(BlockState state)
protected MenuProvider
b(dwy arg0, dgj arg1, ji 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(dwy arg0, dgm arg1, ji 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(dwy arg0, dfo arg1, ji 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(dwy arg0, dgj arg1, ji 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(dwy arg0, dfo arg1, ji arg2, fbg 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(dwy arg0, dfo arg1, ji arg2, fbg 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_(dwy arg0, dfo arg1, ji 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(dwy arg0, dfo arg1, ji arg2, fbg 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(dwy arg0, ard arg1, ji arg2, azh 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(dwy arg0, ard arg1, ji arg2, azh 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(dwy arg0, coy arg1, dfo arg2, ji 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(dwy arg0, ard arg1, ji arg2, cwq 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_(dwy arg0, dgj arg1, ji arg2, coy 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(dwy arg0, dfo arg1, ji arg2, jn 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(dwy arg0, dgj arg1, ji arg2, bum 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_(dwy arg0, dgj arg1, ji 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(dwy arg0, dfo arg1, ji arg2, jn 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(dgj arg0, dwy arg1, fax arg2, cpr 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_(dwy arg0)
propagatesSkylightDown(BlockState arg0)
method_9579(class_2680 arg0)
isTransparent(BlockState state)
protected boolean
f(dwy arg0)
isRandomlyTicking(BlockState arg0)
method_9542(class_2680 arg0)
hasRandomTicks(BlockState state)
protected SoundType
h_(dwy arg0)
getSoundType(BlockState arg0)
method_9573(class_2680 arg0)
getSoundGroup(BlockState state)
protected ItemStack
a(dgm arg0, ji arg1, dwy 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
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()