net.minecraft.world.level.block.state

public class BlockState

extends AbstractStateHolder<Block, BlockState> implements StateHolder<BlockState>

All mapped superinterfaces:

StateHolder

byg
net.minecraft.world.level.block.state.BlockState
net.minecraft.class_2680
net.minecraft.block.BlockState
net.minecraft.block.BlockState
net.minecraft.server.v1_15_R1.IBlockData

Field summary

Modifier and TypeField
private BlockState$Cache
c
cache
field_12290
shapeCache
field_215707_c
private final int
d
lightEmission
field_16553
luminance
field_215708_d
private final boolean
e
useShapeForLightOcclusion
field_16554
hasSidedTransparency
field_215709_e

Constructor summary

ModifierConstructor
public (Block block, com.google.common.collect.ImmutableMap<Property<?>, Comparable<?>> propertyMap)

Method summary

Modifier and TypeMethod
public void
c()
initCache()
method_11590()
initShapeCache()
func_215692_c()
public Block
d()
getBlock()
method_11614()
getBlock()
func_177230_c()
getBlock()
public Material
e()
getMaterial()
method_11620()
getMaterial()
func_185904_a()
getMaterial()
public boolean
a(bjd arg0, fk arg1, akr<?> arg2)
isValidSpawn(BlockGetter arg0, BlockPos arg1, EntityType<?> arg2)
method_11611(class_1922 arg0, class_2338 arg1, class_1299<?> arg2)
allowsSpawning(BlockView view, BlockPos pos, EntityType<?> type)
func_215688_a(IBlockReader arg0, BlockPos arg1, EntityType<?> arg2)
public boolean
a(bjd arg0, fk arg1)
propagatesSkylightDown(BlockGetter arg0, BlockPos arg1)
method_11623(class_1922 arg0, class_2338 arg1)
isTranslucent(BlockView view, BlockPos pos)
func_200131_a(IBlockReader arg0, BlockPos arg1)
public int
b(bjd arg0, fk arg1)
getLightBlock(BlockGetter arg0, BlockPos arg1)
method_11581(class_1922 arg0, class_2338 arg1)
getOpacity(BlockView view, BlockPos pos)
func_200016_a(IBlockReader arg0, BlockPos arg1)
public VoxelShape
a(bjd arg0, fk arg1, fp arg2)
getFaceOcclusionShape(BlockGetter arg0, BlockPos arg1, Direction arg2)
method_16384(class_1922 arg0, class_2338 arg1, class_2350 arg2)
getCullingFace(BlockView view, BlockPos pos, Direction facing)
func_215702_a(IBlockReader arg0, BlockPos arg1, Direction arg2)
public boolean
f()
hasLargeCollisionShape()
method_17900()
exceedsCube()
func_215704_f()
public boolean
g()
useShapeForLightOcclusion()
method_16386()
hasSidedTransparency()
func_215691_g()
public int
h()
getLightEmission()
method_11630()
getLuminance()
func_185906_d()
public boolean
i()
isAir()
method_11588()
isAir()
func_196958_f()
isAir()
public MaterialColor
c(bjd arg0, fk arg1)
getMapColor(BlockGetter arg0, BlockPos arg1)
method_11625(class_1922 arg0, class_2338 arg1)
getTopMaterialColor(BlockView view, BlockPos pos)
func_185909_g(IBlockReader arg0, BlockPos arg1)
public BlockState
a(btr arg0)
rotate(Rotation arg0)
method_11626(class_2470 arg0)
rotate(BlockRotation rotation)
func_185907_a(Rotation arg0)
public BlockState
a(bsr arg0)
mirror(Mirror arg0)
method_11605(class_2415 arg0)
mirror(BlockMirror mirror)
func_185902_a(Mirror arg0)
public RenderShape
j()
getRenderShape()
method_11610()
getRenderType()
func_185901_i()
public boolean
e(bjd arg0, fk arg1)
isRedstoneConductor(BlockGetter arg0, BlockPos arg1)
method_11621(class_1922 arg0, class_2338 arg1)
isSimpleFullBlock(BlockView view, BlockPos pos)
func_215686_e(IBlockReader arg0, BlockPos arg1)
isOccluding(IBlockAccess arg0, BlockPosition arg1)
public boolean
l()
isSignalSource()
method_11634()
emitsRedstonePower()
func_185897_m()
isPowerSource()
public int
b(bjd arg0, fk arg1, fp arg2)
getSignal(BlockGetter arg0, BlockPos arg1, Direction arg2)
method_11597(class_1922 arg0, class_2338 arg1, class_2350 arg2)
getWeakRedstonePower(BlockView view, BlockPos pos, Direction facing)
func_185911_a(IBlockReader arg0, BlockPos arg1, Direction arg2)
public boolean
m()
hasAnalogOutputSignal()
method_11584()
hasComparatorOutput()
func_185912_n()
isComplexRedstone()
public int
a(bjt arg0, fk arg1)
getAnalogOutputSignal(Level arg0, BlockPos arg1)
method_11627(class_1937 arg0, class_2338 arg1)
getComparatorOutput(World world, BlockPos pos)
func_185888_a(World arg0, BlockPos arg1)
public float
f(bjd arg0, fk arg1)
getDestroySpeed(BlockGetter arg0, BlockPos arg1)
method_11579(class_1922 arg0, class_2338 arg1)
getHardness(BlockView view, BlockPos pos)
func_185887_b(IBlockReader arg0, BlockPos arg1)
public float
a(ayg arg0, bjd arg1, fk arg2)
getDestroyProgress(Player arg0, BlockGetter arg1, BlockPos arg2)
method_11589(class_1657 arg0, class_1922 arg1, class_2338 arg2)
calcBlockBreakingDelta(PlayerEntity player, BlockView view, BlockPos pos)
func_185903_a(PlayerEntity arg0, IBlockReader arg1, BlockPos arg2)
getDamage(EntityHuman arg0, IBlockAccess arg1, BlockPosition arg2)
public int
c(bjd arg0, fk arg1, fp arg2)
getDirectSignal(BlockGetter arg0, BlockPos arg1, Direction arg2)
method_11577(class_1922 arg0, class_2338 arg1, class_2350 arg2)
getStrongRedstonePower(BlockView view, BlockPos pos, Direction facing)
func_185893_b(IBlockReader arg0, BlockPos arg1, Direction arg2)
public PushReaction
n()
getPistonPushReaction()
method_11586()
getPistonBehavior()
func_185905_o()
getPushReaction()
public boolean
g(bjd arg0, fk arg1)
isSolidRender(BlockGetter arg0, BlockPos arg1)
method_11598(class_1922 arg0, class_2338 arg1)
isFullOpaque(BlockView view, BlockPos pos)
func_200015_d(IBlockReader arg0, BlockPos arg1)
public boolean
o()
canOcclude()
method_11619()
isOpaque()
func_200132_m()
public VoxelShape
h(bjd arg0, fk arg1)
getShape(BlockGetter arg0, BlockPos arg1)
method_17770(class_1922 arg0, class_2338 arg1)
getOutlineShape(BlockView view, BlockPos pos)
func_196954_c(IBlockReader arg0, BlockPos arg1)
getShape(IBlockAccess arg0, BlockPosition arg1)
public VoxelShape
a(bjd arg0, fk arg1, cvn arg2)
getShape(BlockGetter arg0, BlockPos arg1, CollisionContext arg2)
method_11606(class_1922 arg0, class_2338 arg1, class_3726 arg2)
getOutlineShape(BlockView view, BlockPos pos, EntityContext context)
func_215700_a(IBlockReader arg0, BlockPos arg1, ISelectionContext arg2)
public VoxelShape
i(bjd arg0, fk arg1)
getCollisionShape(BlockGetter arg0, BlockPos arg1)
method_11628(class_1922 arg0, class_2338 arg1)
getCollisionShape(BlockView view, BlockPos pos)
func_196952_d(IBlockReader arg0, BlockPos arg1)
getCollisionShape(IBlockAccess arg0, BlockPosition arg1)
public VoxelShape
b(bjd arg0, fk arg1, cvn arg2)
getCollisionShape(BlockGetter arg0, BlockPos arg1, CollisionContext arg2)
method_16337(class_1922 arg0, class_2338 arg1, class_3726 arg2)
getCollisionShape(BlockView view, BlockPos pos, EntityContext ePos)
func_215685_b(IBlockReader arg0, BlockPos arg1, ISelectionContext arg2)
public VoxelShape
j(bjd arg0, fk arg1)
getOcclusionShape(BlockGetter arg0, BlockPos arg1)
method_11615(class_1922 arg0, class_2338 arg1)
getCullingShape(BlockView view, BlockPos pos)
func_196951_e(IBlockReader arg0, BlockPos arg1)
public VoxelShape
k(bjd arg0, fk arg1)
getInteractionShape(BlockGetter arg0, BlockPos arg1)
method_11607(class_1922 arg0, class_2338 arg1)
getRayTraceShape(BlockView view, BlockPos pos)
func_199611_f(IBlockReader arg0, BlockPos arg1)
public final boolean
a(bjd arg0, fk arg1, akn arg2)
entityCanStandOn(BlockGetter arg0, BlockPos arg1, Entity arg2)
method_11631(class_1922 arg0, class_2338 arg1, class_1297 arg2)
hasSolidTopSurface(BlockView view, BlockPos pos, Entity entity)
func_215682_a(IBlockReader arg0, BlockPos arg1, Entity arg2)
public Vec3
l(bjd arg0, fk arg1)
getOffset(BlockGetter arg0, BlockPos arg1)
method_11599(class_1922 arg0, class_2338 arg1)
getOffsetPos(BlockView view, BlockPos pos)
func_191059_e(IBlockReader arg0, BlockPos arg1)
public boolean
a(bjt arg0, fk arg1, int arg2, int arg3)
triggerEvent(Level arg0, BlockPos arg1, int arg2, int arg3)
method_11583(class_1937 arg0, class_2338 arg1, int arg2, int arg3)
onBlockAction(World world, BlockPos pos, int type, int data)
func_189547_a(World arg0, BlockPos arg1, int arg2, int arg3)
public void
a(bjt arg0, fk arg1, bpe arg2, fk arg3, boolean arg4)
neighborChanged(Level arg0, BlockPos arg1, Block arg2, BlockPos arg3, boolean arg4)
method_11622(class_1937 arg0, class_2338 arg1, class_2248 arg2, class_2338 arg3, boolean arg4)
neighborUpdate(World world, BlockPos pos, Block neighborBlock, BlockPos neighborPos, boolean arg4)
func_215697_a(World arg0, BlockPos arg1, Block arg2, BlockPos arg3, boolean arg4)
doPhysics(World arg0, BlockPosition arg1, Block arg2, BlockPosition arg3, boolean arg4)
public void
a(bju arg0, fk arg1, int arg2)
updateNeighbourShapes(LevelAccessor arg0, BlockPos arg1, int arg2)
method_11635(class_1936 arg0, class_2338 arg1, int arg2)
updateNeighborStates(IWorld world, BlockPos pos, int flags)
func_196946_a(IWorld arg0, BlockPos arg1, int arg2)
public void
b(bju arg0, fk arg1, int arg2)
updateIndirectNeighbourShapes(LevelAccessor arg0, BlockPos arg1, int arg2)
method_11637(class_1936 arg0, class_2338 arg1, int arg2)
method_11637(IWorld world, BlockPos pos, int flags)
func_196948_b(IWorld arg0, BlockPos arg1, int arg2)
public void
a(bjt arg0, fk arg1, byg arg2, boolean arg3)
onPlace(Level arg0, BlockPos arg1, BlockState arg2, boolean arg3)
method_11580(class_1937 arg0, class_2338 arg1, class_2680 arg2, boolean arg3)
onBlockAdded(World world, BlockPos pos, BlockState oldState, boolean moved)
func_215705_a(World arg0, BlockPos arg1, BlockState arg2, boolean arg3)
onPlace(World arg0, BlockPosition arg1, IBlockData arg2, boolean arg3)
public void
b(bjt arg0, fk arg1, byg arg2, boolean arg3)
onRemove(Level arg0, BlockPos arg1, BlockState arg2, boolean arg3)
method_11600(class_1937 arg0, class_2338 arg1, class_2680 arg2, boolean arg3)
onBlockRemoved(World world, BlockPos pos, BlockState newState, boolean moved)
func_196947_b(World arg0, BlockPos arg1, BlockState arg2, boolean arg3)
remove(World arg0, BlockPosition arg1, IBlockData arg2, boolean arg3)
public void
a(xd arg0, fk arg1, Random arg2)
tick(ServerLevel arg0, BlockPos arg1, Random arg2)
method_11585(class_3218 arg0, class_2338 arg1, Random arg2)
scheduledTick(ServerWorld world, BlockPos pos, Random random)
func_227033_a_(ServerWorld arg0, BlockPos arg1, Random arg2)
public void
b(xd arg0, fk arg1, Random arg2)
randomTick(ServerLevel arg0, BlockPos arg1, Random arg2)
method_11624(class_3218 arg0, class_2338 arg1, Random arg2)
randomTick(ServerWorld world, BlockPos pos, Random random)
func_227034_b_(ServerWorld arg0, BlockPos arg1, Random arg2)
public void
a(bjt arg0, fk arg1, akn arg2)
entityInside(Level arg0, BlockPos arg1, Entity arg2)
method_11613(class_1937 arg0, class_2338 arg1, class_1297 arg2)
onEntityCollision(World world, BlockPos pos, Entity entity)
func_196950_a(World arg0, BlockPos arg1, Entity arg2)
public void
a(bjt arg0, fk arg1, bek arg2)
spawnAfterBreak(Level arg0, BlockPos arg1, ItemStack arg2)
method_11595(class_1937 arg0, class_2338 arg1, class_1799 arg2)
onStacksDropped(World world, BlockPos pos, ItemStack stack)
func_215706_a(World arg0, BlockPos arg1, ItemStack arg2)
dropNaturally(World arg0, BlockPosition arg1, ItemStack arg2)
public List<ItemStack>
a(cru$a arg0)
getDrops(LootContext$Builder arg0)
method_11612(class_47$class_48 arg0)
getDroppedStacks(LootContext$Builder builder)
func_215693_a(LootContext$Builder arg0)
public InteractionResult
a(bjt arg0, ayg arg1, ajh arg2, cvd arg3)
use(Level arg0, Player arg1, InteractionHand arg2, BlockHitResult arg3)
method_11629(class_1937 arg0, class_1657 arg1, class_1268 arg2, class_3965 arg3)
onUse(World world, PlayerEntity player, Hand hand, BlockHitResult hit)
func_227031_a_(World arg0, PlayerEntity arg1, Hand arg2, BlockRayTraceResult arg3)
interact(World arg0, EntityHuman arg1, EnumHand arg2, MovingObjectPositionBlock arg3)
public void
a(bjt arg0, fk arg1, ayg arg2)
attack(Level arg0, BlockPos arg1, Player arg2)
method_11636(class_1937 arg0, class_2338 arg1, class_1657 arg2)
onBlockBreakStart(World world, BlockPos pos, PlayerEntity player)
func_196942_a(World arg0, BlockPos arg1, PlayerEntity arg2)
attack(World arg0, BlockPosition arg1, EntityHuman arg2)
public boolean
m(bjd arg0, fk arg1)
isSuffocating(BlockGetter arg0, BlockPos arg1)
method_11582(class_1922 arg0, class_2338 arg1)
canSuffocate(BlockView view, BlockPos pos)
func_229980_m_(IBlockReader arg0, BlockPos arg1)
public BlockState
a(fp arg0, byg arg1, bju arg2, fk arg3, fk arg4)
updateShape(Direction arg0, BlockState arg1, LevelAccessor arg2, BlockPos arg3, BlockPos arg4)
method_11578(class_2350 arg0, class_2680 arg1, class_1936 arg2, class_2338 arg3, class_2338 arg4)
getStateForNeighborUpdate(Direction facing, BlockState neighborState, IWorld world, BlockPos pos, BlockPos neighborPos)
func_196956_a(Direction arg0, BlockState arg1, IWorld arg2, BlockPos arg3, BlockPos arg4)
updateState(EnumDirection arg0, IBlockData arg1, GeneratorAccess arg2, BlockPosition arg3, BlockPosition arg4)
public boolean
a(bjd arg0, fk arg1, cqo arg2)
isPathfindable(BlockGetter arg0, BlockPos arg1, PathComputationType arg2)
method_11609(class_1922 arg0, class_2338 arg1, class_10 arg2)
canPlaceAtSide(BlockView view, BlockPos pos, BlockPlacementEnvironment env)
func_196957_g(IBlockReader arg0, BlockPos arg1, PathType arg2)
public boolean
a(bcn arg0)
canBeReplaced(BlockPlaceContext arg0)
method_11587(class_1750 arg0)
canReplace(ItemPlacementContext ctx)
func_196953_a(BlockItemUseContext arg0)
public boolean
a(cof arg0)
canBeReplaced(Fluid arg0)
method_22360(class_3611 arg0)
canBucketPlace(Fluid fluid)
func_227032_a_(Fluid arg0)
public boolean
a(bjw arg0, fk arg1)
canSurvive(LevelReader arg0, BlockPos arg1)
method_11591(class_4538 arg0, class_2338 arg1)
canPlaceAt(WorldView world, BlockPos pos)
func_196955_c(IWorldReader arg0, BlockPos arg1)
canPlace(IWorldReader arg0, BlockPosition arg1)
public boolean
o(bjd arg0, fk arg1)
hasPostProcess(BlockGetter arg0, BlockPos arg1)
method_11601(class_1922 arg0, class_2338 arg1)
shouldPostProcess(BlockView view, BlockPos pos)
func_202065_c(IBlockReader arg0, BlockPos arg1)
public MenuProvider
b(bjt arg0, fk arg1)
getMenuProvider(Level arg0, BlockPos arg1)
method_17526(class_1937 arg0, class_2338 arg1)
createContainerProvider(World world, BlockPos pos)
func_215699_b(World arg0, BlockPos arg1)
public boolean
a(aaz<bpe> arg0)
is(Tag<Block> arg0)
method_11602(class_3494<class_2248> arg0)
matches(Tag<Block> tag)
func_203425_a(Tag<Block> arg0)
public FluidState
p()
getFluidState()
method_11618()
getFluidState()
func_204520_s()
getFluid()
public boolean
q()
isRandomlyTicking()
method_11616()
hasRandomTicks()
func_204519_t()
public SoundType
r()
getSoundType()
method_11638()
getSoundGroup()
func_215695_r()
public void
a(bjt arg0, byg arg1, cvd arg2, akn arg3)
onProjectileHit(Level arg0, BlockState arg1, BlockHitResult arg2, Entity arg3)
method_19287(class_1937 arg0, class_2680 arg1, class_3965 arg2, class_1297 arg3)
onProjectileHit(World world, BlockState state, BlockHitResult hitResult, Entity projectile)
func_215690_a(World arg0, BlockState arg1, BlockRayTraceResult arg2, Entity arg3)
public boolean
d(bjd arg0, fk arg1, fp arg2)
isFaceSturdy(BlockGetter arg0, BlockPos arg1, Direction arg2)
method_20827(class_1922 arg0, class_2338 arg1, class_2350 arg2)
isSideSolidFullSquare(BlockView world, BlockPos pos, Direction direction)
func_224755_d(IBlockReader arg0, BlockPos arg1, Direction arg2)
public boolean
p(bjd arg0, fk arg1)
isCollisionShapeFullBlock(BlockGetter arg0, BlockPos arg1)
method_21743(class_1922 arg0, class_2338 arg1)
isFullCube(BlockView world, BlockPos pos)
func_224756_o(IBlockReader arg0, BlockPos arg1)
public static <T> com.mojang.datafixers.Dynamic<T>
a(com.mojang.datafixers.types.DynamicOps<T> arg0, byg arg1)
serialize(com.mojang.datafixers.types.DynamicOps<T> arg0, BlockState arg1)
method_16550(com.mojang.datafixers.types.DynamicOps<T> arg0, class_2680 arg1)
serialize(com.mojang.datafixers.types.DynamicOps<T> ops, BlockState state)
func_215689_a(com.mojang.datafixers.types.DynamicOps<T> arg0, BlockState arg1)
public static <T> BlockState
a(com.mojang.datafixers.Dynamic<T> arg0)
deserialize(com.mojang.datafixers.Dynamic<T> arg0)
method_11633(com.mojang.datafixers.Dynamic<T> arg0)
deserialize(com.mojang.datafixers.Dynamic<T> dynamic)
func_215698_a(com.mojang.datafixers.Dynamic<T> arg0)
public boolean
k()
emissiveRendering()
method_22361()
hasEmissiveLighting()
func_227035_k_()
public float
d(bjd arg0, fk arg1)
getShadeBrightness(BlockGetter arg0, BlockPos arg1)
method_11596(class_1922 arg0, class_2338 arg1)
getAmbientOcclusionLightLevel(BlockView view, BlockPos pos)
func_215703_d(IBlockReader arg0, BlockPos arg1)
public boolean
a(byg arg0, fp arg1)
skipRendering(BlockState arg0, Direction arg1)
method_11592(class_2680 arg0, class_2350 arg1)
isSideInvisible(BlockState neighbor, Direction facing)
func_200017_a(BlockState arg0, Direction arg1)
public boolean
n(bjd arg0, fk arg1)
isViewBlocking(BlockGetter arg0, BlockPos arg1)
method_24220(class_1922 arg0, class_2338 arg1)
hasInWallOverlay(BlockView view, BlockPos pos)
func_215696_m(IBlockReader arg0, BlockPos arg1)
public long
a(fk arg0)
getSeed(BlockPos arg0)
method_11617(class_2338 arg0)
getRenderingSeed(BlockPos pos)
func_209533_a(BlockPos arg0)