public class BedBlock extends HorizontalBlock implements ITileEntityProvider
Block.OffsetType, Block.Properties, Block.RenderSideCacheKey| Modifier and Type | Field and Description |
|---|---|
protected static VoxelShape |
field_220176_c |
protected static VoxelShape |
field_220177_d |
protected static VoxelShape |
field_220178_e |
protected static VoxelShape |
field_220179_f |
protected static VoxelShape |
field_220180_g |
protected static VoxelShape |
field_220181_h |
protected static VoxelShape |
field_220182_i |
protected static VoxelShape |
field_220183_j |
protected static VoxelShape |
field_220184_k |
static BooleanProperty |
OCCUPIED |
static EnumProperty<BedPart> |
PART |
HORIZONTAL_FACINGBLOCK_STATE_IDS, blockHardness, blockResistance, blocksMovement, lightValue, LOGGER, material, materialColor, RANDOM, soundType, stateContainer, ticksRandomlydelegate| Constructor and Description |
|---|
BedBlock(DyeColor colorIn,
Block.Properties properties) |
mirror, rotateaddInformation, animateTick, asItem, canDropFromExplosion, canEntitySpawn, cannotAttach, canProvidePower, canSpawnInBlock, canSustainPlant, causesSuffocation, doesSideFillSquare, dropXpOnBlockBreak, eventReceived, fillItemGroup, fillWithRain, func_220055_a, func_220064_c, func_220074_n, func_220080_a, getBlockFromItem, getBlockHardness, getCollisionShape, getComparatorInputOverride, getContainer, getDefaultState, getDrops, getDrops, getDrops, getExplosionResistance, getFluidState, getHarvestLevel, getHarvestTool, getItem, getLightValue, getLootTable, getMaterial, getNameTextComponent, getOffset, getOffsetType, getOpacity, getPackedLightmapCoords, getPlayerRelativeBlockHardness, getRaytraceShape, getRenderShape, getSlipperiness, getSlipperiness, getSoundType, getStateById, getStateContainer, getStateId, getStrongPower, getTags, getTranslationKey, getValidBlockForPosition, getWeakPower, hasComparatorInputOverride, hasSolidSide, hasTileEntity, isAir, isDirt, isIn, isNormalCube, isOpaque, isOpaqueCube, isReplaceable, isRock, isSideInvisible, isSolid, isValidPosition, isVariableOpacity, makeCuboidShape, needsPostProcessing, neighborChanged, nudgeEntitiesWithNewState, onBlockAdded, onBlockClicked, onEntityCollision, onEntityWalk, onExplosionDestroy, onPlayerDestroy, onProjectileCollision, onReplaced, propagatesSkylightDown, randomTick, replaceBlock, setDefaultState, shouldSideBeRendered, spawnAdditionalDrops, spawnAsEntity, spawnDrops, spawnDrops, spawnDrops, spawnDrops, tick, tickRate, ticksRandomly, toString, updateDiagonalNeighbors, updateNeighborsgetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, beginLeaveDecay, canBeConnectedTo, canBeReplacedByLeaves, canBeReplacedByLogs, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canRenderInLayer, catchFire, collisionExtendsVertically, createTileEntity, doesSideBlockRendering, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlock, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExtendedState, getFireSpreadSpeed, getFlammability, getFogColor, getLightValue, getPickBlock, getRayTraceResult, getSoundType, getStateAtViewpoint, getStateForPlacement, getValidRotations, getWeakChanges, hasTileEntity, isAir, isBeaconBase, isBed, isBedFoot, isBurning, isFertile, isFireSource, isFlammable, isFoliage, isLadder, isPortalFrame, isReplaceableOreGen, isStickyBlock, isToolEffective, observedNeighborChange, onBlockExploded, onNeighborChange, onPlantGrow, recolorBlock, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPowerpublic static final EnumProperty<BedPart> PART
public static final BooleanProperty OCCUPIED
protected static final VoxelShape field_220176_c
protected static final VoxelShape field_220177_d
protected static final VoxelShape field_220178_e
protected static final VoxelShape field_220179_f
protected static final VoxelShape field_220180_g
protected static final VoxelShape field_220181_h
protected static final VoxelShape field_220182_i
protected static final VoxelShape field_220183_j
protected static final VoxelShape field_220184_k
public BedBlock(DyeColor colorIn, Block.Properties properties)
public MaterialColor getMaterialColor(BlockState state, IBlockReader worldIn, BlockPos pos)
getMaterialColor in class Block@Nullable public static Direction func_220174_a(IBlockReader p_220174_0_, BlockPos p_220174_1_)
public boolean onBlockActivated(BlockState state, World worldIn, BlockPos pos, PlayerEntity player, Hand handIn, BlockRayTraceResult hit)
onBlockActivated in class Blockpublic void onFallenUpon(World worldIn, BlockPos pos, Entity entityIn, float fallDistance)
onFallenUpon in class Blockpublic void onLanded(IBlockReader worldIn, Entity entityIn)
public BlockState updatePostPlacement(BlockState stateIn, Direction facing, BlockState facingState, IWorld worldIn, BlockPos currentPos, BlockPos facingPos)
updatePostPlacement in class Blockpublic void harvestBlock(World worldIn, PlayerEntity player, BlockPos pos, BlockState state, @Nullable TileEntity te, ItemStack stack)
harvestBlock in class Blockpublic void onBlockHarvested(World worldIn, BlockPos pos, BlockState state, PlayerEntity player)
onBlockHarvested in class Block@Nullable public BlockState getStateForPlacement(BlockItemUseContext context)
getStateForPlacement in class Blockpublic VoxelShape getShape(BlockState state, IBlockReader worldIn, BlockPos pos, ISelectionContext context)
public boolean hasCustomBreakingProgress(BlockState state)
hasCustomBreakingProgress in class Blockpublic static java.util.Optional<Vec3d> func_220172_a(EntityType<?> p_220172_0_, IWorldReader p_220172_1_, BlockPos p_220172_2_, int p_220172_3_)
protected static java.util.Optional<Vec3d> func_220175_a(EntityType<?> p_220175_0_, IWorldReader p_220175_1_, BlockPos p_220175_2_)
public PushReaction getPushReaction(BlockState state)
getPushReaction in class Blockpublic BlockRenderLayer getRenderLayer()
getRenderLayer in class Blockpublic BlockRenderType getRenderType(BlockState state)
getRenderType in class Blockprotected void fillStateContainer(StateContainer.Builder<Block,BlockState> builder)
fillStateContainer in class Blockpublic TileEntity createNewTileEntity(IBlockReader worldIn)
createNewTileEntity in interface ITileEntityProviderpublic void onBlockPlacedBy(World worldIn, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack stack)
onBlockPlacedBy in class Blockpublic DyeColor getColor()
public long getPositionRandom(BlockState state, BlockPos pos)
getPositionRandom in class Blockpublic boolean allowsMovement(BlockState state, IBlockReader worldIn, BlockPos pos, PathType type)
allowsMovement in class Block