net.minecraft.block

public class BlockState

extends AbstractPropertyContainer<Block, BlockState> implements PropertyContainer<BlockState>

All mapped superinterfaces:

PropertyContainer

bvo
net.minecraft.class_2680
net.minecraft.block.BlockState
net.minecraft.block.state.BlockState
net.minecraft.block.BlockState
net.minecraft.block.BlockState

Field summary

Modifier and TypeField
private BlockState$ShapeCache
c
field_12290
shapeCache
cache
field_215707_c
cache
private final int
d
field_16553
luminance
light
field_215708_d
lightLevel
private final boolean
e
field_16554
hasSidedTransparency
isCube
field_215709_e
field_215709_e

Constructor summary

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

Method summary

Modifier and TypeMethod
public void
c()
method_11590()
initShapeCache()
cacheShape()
func_215692_c()
cacheState()
public Block
d()
method_11614()
getBlock()
getBlock()
func_177230_c()
getBlock()
public Material
e()
method_11620()
getMaterial()
getMaterial()
func_185904_a()
getMaterial()
public boolean
a(bgw arg0, ev arg1, aip<?> arg2)
method_11611(class_1922 arg0, class_2338 arg1, class_1299<?> arg2)
allowsSpawning(BlockView arg0, BlockPos arg1, EntityType<?> arg2)
canSpawn(BlockView world, BlockPos pos, EntityType<?> entityType)
func_215688_a(IBlockReader arg0, BlockPos arg1, EntityType<?> arg2)
canEntitySpawn(IBlockReader worldIn, BlockPos pos, EntityType<?> type)
public boolean
a(bgw arg0, ev arg1)
method_11623(class_1922 arg0, class_2338 arg1)
isTranslucent(BlockView arg0, BlockPos arg1)
propagateSkylight(BlockView world, BlockPos pos)
func_200131_a(IBlockReader arg0, BlockPos arg1)
propagatesSkylightDown(IBlockReader worldIn, BlockPos pos)
public int
b(bgw arg0, ev arg1)
method_11581(class_1922 arg0, class_2338 arg1)
getLightSubtracted(BlockView arg0, BlockPos arg1)
getOpacity(BlockView world, BlockPos pos)
func_200016_a(IBlockReader arg0, BlockPos arg1)
getOpacity(IBlockReader worldIn, BlockPos pos)
public VoxelShape
a(bgw arg0, ev arg1, fa arg2)
method_16384(class_1922 arg0, class_2338 arg1, class_2350 arg2)
getCullShape(BlockView arg0, BlockPos arg1, Direction arg2)
getFaceOcclusionShape(BlockView world, BlockPos pos, Direction face)
func_215702_a(IBlockReader arg0, BlockPos arg1, Direction arg2)
func_215702_a(IBlockReader worldIn, BlockPos pos, Direction directionIn)
public boolean
f()
method_17900()
method_17900()
hasLargeCollisionShape()
func_215704_f()
isCollisionShapeLargerThanFullBlock()
public boolean
g()
method_16386()
hasSidedTransparency()
isCube()
func_215691_g()
func_215691_g()
public int
h()
method_11630()
getLuminance()
getLight()
func_185906_d()
getLightValue()
public boolean
i()
method_11588()
isAir()
isAir()
func_196958_f()
isAir()
public MaterialColor
c(bgw arg0, ev arg1)
method_11625(class_1922 arg0, class_2338 arg1)
getTopMaterialColor(BlockView arg0, BlockPos arg1)
getMapColor(BlockView world, BlockPos pos)
func_185909_g(IBlockReader arg0, BlockPos arg1)
getMaterialColor(IBlockReader worldIn, BlockPos pos)
public BlockState
a(brb arg0)
method_11626(class_2470 arg0)
rotate(BlockRotation arg0)
rotate(BlockRotation rotation)
func_185907_a(Rotation arg0)
rotate(Rotation rot)
public BlockState
a(bqb arg0)
method_11605(class_2415 arg0)
mirror(BlockMirror arg0)
mirror(BlockMirror mirror)
func_185902_a(Mirror arg0)
mirror(Mirror mirrorIn)
public BlockRenderType
k()
method_11610()
getRenderType()
getRenderType()
func_185901_i()
getRenderType()
public boolean
e(bgw arg0, ev arg1)
method_11621(class_1922 arg0, class_2338 arg1)
isSimpleFullBlock(BlockView arg0, BlockPos arg1)
isSolid(BlockView world, BlockPos pos)
func_215686_e(IBlockReader arg0, BlockPos arg1)
isNormalCube(IBlockReader reader, BlockPos pos)
public boolean
l()
method_11634()
emitsRedstonePower()
isSignalSource()
func_185897_m()
canProvidePower()
public int
b(bgw arg0, ev arg1, fa arg2)
method_11597(class_1922 arg0, class_2338 arg1, class_2350 arg2)
getWeakRedstonePower(BlockView arg0, BlockPos arg1, Direction arg2)
getSignal(BlockView world, BlockPos pos, Direction dir)
func_185911_a(IBlockReader arg0, BlockPos arg1, Direction arg2)
getWeakPower(IBlockReader blockAccess, BlockPos pos, Direction side)
public boolean
m()
method_11584()
hasComparatorOutput()
isAnalogSignalSource()
func_185912_n()
hasComparatorInputOverride()
public int
a(bhm arg0, ev arg1)
method_11627(class_1937 arg0, class_2338 arg1)
getComparatorOutput(World arg0, BlockPos arg1)
getAnalogSignal(World world, BlockPos pos)
func_185888_a(World arg0, BlockPos arg1)
getComparatorInputOverride(World worldIn, BlockPos pos)
public float
f(bgw arg0, ev arg1)
method_11579(class_1922 arg0, class_2338 arg1)
getHardness(BlockView arg0, BlockPos arg1)
getMiningSpeed(BlockView world, BlockPos pos)
func_185887_b(IBlockReader arg0, BlockPos arg1)
getBlockHardness(IBlockReader worldIn, BlockPos pos)
public float
a(awb arg0, bgw arg1, ev arg2)
method_11589(class_1657 arg0, class_1922 arg1, class_2338 arg2)
calcBlockBreakingDelta(PlayerEntity arg0, BlockView arg1, BlockPos arg2)
getMiningSpeed(PlayerEntity player, BlockView world, BlockPos pos)
func_185903_a(PlayerEntity arg0, IBlockReader arg1, BlockPos arg2)
getPlayerRelativeBlockHardness(PlayerEntity player, IBlockReader worldIn, BlockPos pos)
public int
c(bgw arg0, ev arg1, fa arg2)
method_11577(class_1922 arg0, class_2338 arg1, class_2350 arg2)
getStrongRedstonePower(BlockView arg0, BlockPos arg1, Direction arg2)
getDirectSignal(BlockView world, BlockPos pos, Direction dir)
func_185893_b(IBlockReader arg0, BlockPos arg1, Direction arg2)
getStrongPower(IBlockReader blockAccess, BlockPos pos, Direction side)
public PistonBehavior
n()
method_11586()
getPistonBehavior()
getPistonMoveBehavior()
func_185905_o()
getPushReaction()
public boolean
g(bgw arg0, ev arg1)
method_11598(class_1922 arg0, class_2338 arg1)
isFullOpaque(BlockView arg0, BlockPos arg1)
isSolidRender(BlockView world, BlockPos pos)
func_200015_d(IBlockReader arg0, BlockPos arg1)
isOpaqueCube(IBlockReader worldIn, BlockPos pos)
public boolean
o()
method_11619()
isOpaque()
hasAmbientOcclusion()
func_200132_m()
isSolid()
public VoxelShape
h(bgw arg0, ev arg1)
method_17770(class_1922 arg0, class_2338 arg1)
getOutlineShape(BlockView arg0, BlockPos arg1)
getSHape(BlockView world, BlockPos pos)
func_196954_c(IBlockReader arg0, BlockPos arg1)
getShape(IBlockReader worldIn, BlockPos pos)
public VoxelShape
a(bgw arg0, ev arg1, csg arg2)
method_11606(class_1922 arg0, class_2338 arg1, class_3726 arg2)
getOutlineShape(BlockView arg0, BlockPos arg1, EntityContext arg2)
getShape(BlockView world, BlockPos pos, CollisionContext context)
func_215700_a(IBlockReader arg0, BlockPos arg1, ISelectionContext arg2)
getShape(IBlockReader worldIn, BlockPos pos, ISelectionContext context)
public VoxelShape
i(bgw arg0, ev arg1)
method_11628(class_1922 arg0, class_2338 arg1)
getCollisionShape(BlockView arg0, BlockPos arg1)
getCollisionShape(BlockView world, BlockPos pos)
func_196952_d(IBlockReader arg0, BlockPos arg1)
getCollisionShape(IBlockReader worldIn, BlockPos pos)
public VoxelShape
b(bgw arg0, ev arg1, csg arg2)
method_16337(class_1922 arg0, class_2338 arg1, class_3726 arg2)
getCollisionShape(BlockView arg0, BlockPos arg1, EntityContext arg2)
getCollisionShape(BlockView world, BlockPos pos, CollisionContext context)
func_215685_b(IBlockReader arg0, BlockPos arg1, ISelectionContext arg2)
getCollisionShape(IBlockReader worldIn, BlockPos pos, ISelectionContext context)
public VoxelShape
j(bgw arg0, ev arg1)
method_11615(class_1922 arg0, class_2338 arg1)
method_11615(BlockView arg0, BlockPos arg1)
getOcclusionShape(BlockView world, BlockPos pos)
func_196951_e(IBlockReader arg0, BlockPos arg1)
getRenderShape(IBlockReader worldIn, BlockPos pos)
public VoxelShape
k(bgw arg0, ev arg1)
method_11607(class_1922 arg0, class_2338 arg1)
getRayTraceShape(BlockView arg0, BlockPos arg1)
getInteractionShape(BlockView world, BlockPos pos)
func_199611_f(IBlockReader arg0, BlockPos arg1)
getRaytraceShape(IBlockReader worldIn, BlockPos pos)
public final boolean
a(bgw arg0, ev arg1, ail arg2)
method_11631(class_1922 arg0, class_2338 arg1, class_1297 arg2)
hasSolidTopSurface(BlockView arg0, BlockPos arg1, Entity arg2)
isFullBlock(BlockView world, BlockPos pos, Entity entity)
func_215682_a(IBlockReader arg0, BlockPos arg1, Entity arg2)
isTopSolid(IBlockReader reader, BlockPos pos, Entity entityIn)
public Vec3d
l(bgw arg0, ev arg1)
method_11599(class_1922 arg0, class_2338 arg1)
getOffsetPos(BlockView arg0, BlockPos arg1)
getOffset(BlockView world, BlockPos pos)
func_191059_e(IBlockReader arg0, BlockPos arg1)
getOffset(IBlockReader access, BlockPos pos)
public boolean
a(bhm arg0, ev arg1, int arg2, int arg3)
method_11583(class_1937 arg0, class_2338 arg1, int arg2, int arg3)
onBlockAction(World arg0, BlockPos arg1, int arg2, int arg3)
doEvent(World world, BlockPos pos, int type, int data)
func_189547_a(World arg0, BlockPos arg1, int arg2, int arg3)
onBlockEventReceived(World worldIn, BlockPos pos, int id, int param)
public void
a(bhm arg0, ev arg1, bmq arg2, ev arg3, boolean arg4)
method_11622(class_1937 arg0, class_2338 arg1, class_2248 arg2, class_2338 arg3, boolean arg4)
neighborUpdate(World arg0, BlockPos arg1, Block arg2, BlockPos arg3, boolean arg4)
neighborChanged(World world, BlockPos pos, Block neighborBlock, BlockPos neighborPos, boolean movedByPiston)
func_215697_a(World arg0, BlockPos arg1, Block arg2, BlockPos arg3, boolean arg4)
neighborChanged(World worldIn, BlockPos arg1, Block blockIn, BlockPos arg3, boolean isMoving)
public void
a(bhn arg0, ev arg1, int arg2)
method_11635(class_1936 arg0, class_2338 arg1, int arg2)
updateNeighborStates(IWorld arg0, BlockPos arg1, int arg2)
updateNeighborShapes(WorldAccess world, BlockPos pos, int flags)
func_196946_a(IWorld arg0, BlockPos arg1, int arg2)
updateNeighbors(IWorld worldIn, BlockPos pos, int flags)
public void
b(bhn arg0, ev arg1, int arg2)
method_11637(class_1936 arg0, class_2338 arg1, int arg2)
method_11637(IWorld arg0, BlockPos arg1, int arg2)
updateIndirectNeighborShapes(WorldAccess world, BlockPos pos, int flags)
func_196948_b(IWorld arg0, BlockPos arg1, int arg2)
updateDiagonalNeighbors(IWorld worldIn, BlockPos pos, int flags)
public void
a(bhm arg0, ev arg1, bvo arg2, boolean arg3)
method_11580(class_1937 arg0, class_2338 arg1, class_2680 arg2, boolean arg3)
onBlockAdded(World arg0, BlockPos arg1, BlockState arg2, boolean arg3)
onAdded(World world, BlockPos pos, BlockState previousState, boolean movedByPiston)
func_215705_a(World arg0, BlockPos arg1, BlockState arg2, boolean arg3)
onBlockAdded(World worldIn, BlockPos pos, BlockState oldState, boolean isMoving)
public void
b(bhm arg0, ev arg1, bvo arg2, boolean arg3)
method_11600(class_1937 arg0, class_2338 arg1, class_2680 arg2, boolean arg3)
onBlockRemoved(World arg0, BlockPos arg1, BlockState arg2, boolean arg3)
onRemoved(World world, BlockPos pos, BlockState newState, boolean movedByPiston)
func_196947_b(World arg0, BlockPos arg1, BlockState arg2, boolean arg3)
onReplaced(World worldIn, BlockPos pos, BlockState newState, boolean isMoving)
public void
a(bhm arg0, ev arg1, Random arg2)
method_11585(class_1937 arg0, class_2338 arg1, Random arg2)
scheduledTick(World arg0, BlockPos arg1, Random arg2)
tick(World world, BlockPos pos, Random random)
func_196940_a(World arg0, BlockPos arg1, Random arg2)
tick(World worldIn, BlockPos pos, Random random)
public void
b(bhm arg0, ev arg1, Random arg2)
method_11624(class_1937 arg0, class_2338 arg1, Random arg2)
onRandomTick(World arg0, BlockPos arg1, Random arg2)
randomTick(World world, BlockPos pos, Random random)
func_196944_b(World arg0, BlockPos arg1, Random arg2)
randomTick(World worldIn, BlockPos pos, Random random)
public void
a(bhm arg0, ev arg1, ail arg2)
method_11613(class_1937 arg0, class_2338 arg1, class_1297 arg2)
onEntityCollision(World arg0, BlockPos arg1, Entity arg2)
onEntityCollision(World world, BlockPos pos, Entity entity)
func_196950_a(World arg0, BlockPos arg1, Entity arg2)
onEntityCollision(World worldIn, BlockPos pos, Entity entityIn)
public void
a(bhm arg0, ev arg1, bce arg2)
method_11595(class_1937 arg0, class_2338 arg1, class_1799 arg2)
onStacksDropped(World arg0, BlockPos arg1, ItemStack arg2)
handleSpecialDrops(World world, BlockPos pos, ItemStack minerItem)
func_215706_a(World arg0, BlockPos arg1, ItemStack arg2)
spawnAdditionalDrops(World worldIn, BlockPos pos, ItemStack stack)
public List<ItemStack>
a(cos$a arg0)
method_11612(class_47$class_48 arg0)
getDroppedStacks(LootContext$Builder arg0)
getDropItems(LootContext$Builder builder)
func_215693_a(LootContext$Builder arg0)
getDrops(LootContext$Builder builder)
public boolean
a(bhm arg0, awb arg1, ahf arg2, crx arg3)
method_11629(class_1937 arg0, class_1657 arg1, class_1268 arg2, class_3965 arg3)
activate(World arg0, PlayerEntity arg1, Hand arg2, BlockHitResult arg3)
use(World world, PlayerEntity player, InteractionHand hand, BlockHitResult hit)
func_215687_a(World arg0, PlayerEntity arg1, Hand arg2, BlockRayTraceResult arg3)
onBlockActivated(World worldIn, PlayerEntity player, Hand handIn, BlockRayTraceResult hit)
public void
a(bhm arg0, ev arg1, awb arg2)
method_11636(class_1937 arg0, class_2338 arg1, class_1657 arg2)
onBlockBreakStart(World arg0, BlockPos arg1, PlayerEntity arg2)
startMining(World world, BlockPos pos, PlayerEntity player)
func_196942_a(World arg0, BlockPos arg1, PlayerEntity arg2)
onBlockClicked(World worldIn, BlockPos pos, PlayerEntity player)
public boolean
m(bgw arg0, ev arg1)
method_11582(class_1922 arg0, class_2338 arg1)
canSuffocate(BlockView arg0, BlockPos arg1)
isViewBlocking(BlockView world, BlockPos pos)
func_215696_m(IBlockReader arg0, BlockPos arg1)
causesSuffocation(IBlockReader worldIn, BlockPos pos)
public BlockState
a(fa arg0, bvo arg1, bhn arg2, ev arg3, ev arg4)
method_11578(class_2350 arg0, class_2680 arg1, class_1936 arg2, class_2338 arg3, class_2338 arg4)
getStateForNeighborUpdate(Direction arg0, BlockState arg1, IWorld arg2, BlockPos arg3, BlockPos arg4)
updateShape(Direction dir, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos)
func_196956_a(Direction arg0, BlockState arg1, IWorld arg2, BlockPos arg3, BlockPos arg4)
updatePostPlacement(Direction face, BlockState queried, IWorld worldIn, BlockPos currentPos, BlockPos offsetPos)
public boolean
a(bgw arg0, ev arg1, cnn arg2)
method_11609(class_1922 arg0, class_2338 arg1, class_10 arg2)
canPlaceAtSide(BlockView arg0, BlockPos arg1, BlockPlacementEnvironment arg2)
canWalkThrough(BlockView world, BlockPos pos, EntityNavigationType type)
func_196957_g(IBlockReader arg0, BlockPos arg1, PathType arg2)
allowsMovement(IBlockReader worldIn, BlockPos pos, PathType type)
public boolean
a(bai arg0)
method_11587(class_1750 arg0)
canReplace(ItemPlacementContext arg0)
canBeReplaced(BlockPlaceContext ctx)
func_196953_a(BlockItemUseContext arg0)
isReplaceable(BlockItemUseContext useContext)
public boolean
a(bhp arg0, ev arg1)
method_11591(class_1941 arg0, class_2338 arg1)
canPlaceAt(ViewableWorld arg0, BlockPos arg1)
canSurvive(WorldView world, BlockPos pos)
func_196955_c(IWorldReader arg0, BlockPos arg1)
isValidPosition(IWorldReader worldIn, BlockPos pos)
public boolean
n(bgw arg0, ev arg1)
method_11601(class_1922 arg0, class_2338 arg1)
shouldPostProcess(BlockView arg0, BlockPos arg1)
needsPostProcessing(BlockView world, BlockPos pos)
func_202065_c(IBlockReader arg0, BlockPos arg1)
blockNeedsPostProcessing(IBlockReader worldIn, BlockPos pos)
public NameableContainerProvider
b(bhm arg0, ev arg1)
method_17526(class_1937 arg0, class_2338 arg1)
createContainerProvider(World arg0, BlockPos arg1)
getMenuProvider(World world, BlockPos pos)
func_215699_b(World arg0, BlockPos arg1)
getContainer(World worldIn, BlockPos pos)
public boolean
a(ze<bmq> arg0)
method_11602(class_3494<class_2248> arg0)
matches(Tag<Block> arg0)
is(Tag<Block> tag)
func_203425_a(Tag<Block> arg0)
isIn(Tag<Block> tagIn)
public FluidState
p()
method_11618()
getFluidState()
getFluidState()
func_204520_s()
getFluidState()
public boolean
q()
method_11616()
hasRandomTicks()
ticksRandomly()
func_204519_t()
ticksRandomly()
public BlockSoundGroup
r()
method_11638()
getSoundGroup()
getSounds()
func_215695_r()
getSoundType()
public void
a(bhm arg0, bvo arg1, crx arg2, ail arg3)
method_19287(class_1937 arg0, class_2680 arg1, class_3965 arg2, class_1297 arg3)
onProjectileHit(World arg0, BlockState arg1, BlockHitResult arg2, Entity arg3)
onProjectileHit(World world, BlockState state, BlockHitResult hit, Entity projectile)
func_215690_a(World arg0, BlockState arg1, BlockRayTraceResult arg2, Entity arg3)
onProjectileCollision(World worldIn, BlockState state, BlockRayTraceResult hit, Entity projectile)
public static <T> Dynamic<T>
a(DynamicOps<T> arg0, bvo arg1)
method_16550(com.mojang.datafixers.types.DynamicOps<T> arg0, class_2680 arg1)
serialize(com.mojang.datafixers.types.DynamicOps<T> arg0, BlockState arg1)
m_12177257(com.mojang.datafixers.types.DynamicOps<T> ops, BlockState state)
func_215689_a(com.mojang.datafixers.types.DynamicOps<T> arg0, BlockState arg1)
serialize(com.mojang.datafixers.types.DynamicOps<T> opsIn, BlockState state)
public static <T> BlockState
a(Dynamic<T> arg0)
method_11633(com.mojang.datafixers.Dynamic<T> arg0)
deserialize(com.mojang.datafixers.Dynamic<T> arg0)
m_49083147(com.mojang.datafixers.Dynamic<T> dynamic)
func_215698_a(com.mojang.datafixers.Dynamic<T> arg0)
deserialize(com.mojang.datafixers.Dynamic<T> dynamic)
public boolean
j()
method_11608()
hasBlockEntityBreakingRender()
hasCustomMiningProgress()
func_191057_i()
hasCustomBreakingProgress()
public int
a(bgu arg0, ev arg1)
method_11632(class_1920 arg0, class_2338 arg1)
getBlockBrightness(ExtendedBlockView arg0, BlockPos arg1)
getLightColor(BlockBiomeView world, BlockPos pos)
func_215684_a(IEnviromentBlockReader arg0, BlockPos arg1)
getPackedLightmapCoords(IEnviromentBlockReader reader, BlockPos pos)
public float
d(bgw arg0, ev arg1)
method_11596(class_1922 arg0, class_2338 arg1)
getAmbientOcclusionLightLevel(BlockView arg0, BlockPos arg1)
getAmbientOcclusionLightLevel(BlockView world, BlockPos pos)
func_215703_d(IBlockReader arg0, BlockPos arg1)
getAmbientOcclusionLightValue(IBlockReader reader, BlockPos pos)
public boolean
a(bvo arg0, fa arg1)
method_11592(class_2680 arg0, class_2350 arg1)
isSideInvisible(BlockState arg0, Direction arg1)
shouldNotRender(BlockState neighborState, Direction face)
func_200017_a(BlockState arg0, Direction arg1)
isSideInvisible(BlockState state, Direction face)
public long
a(ev arg0)
method_11617(class_2338 arg0)
getRenderingSeed(BlockPos arg0)
getSeed(BlockPos pos)
func_209533_a(BlockPos arg0)
getPositionRandom(BlockPos pos)