public class BedBlock extends HorizontalBlock implements ITileEntityProvider
Block.OffsetType, Block.Properties, Block.RenderSideCacheKey| 修飾子とタイプ | フィールドと説明 |
|---|---|
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| コンストラクタと説明 |
|---|
BedBlock(DyeColor colorIn,
Block.Properties properties) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
allowsMovement(BlockState state,
IBlockReader worldIn,
BlockPos pos,
PathType type) |
TileEntity |
createNewTileEntity(IBlockReader worldIn) |
protected void |
fillStateContainer(StateContainer.Builder<Block,BlockState> builder) |
static java.util.Optional<Vec3d> |
func_220172_a(EntityType<?> p_220172_0_,
IWorldReader p_220172_1_,
BlockPos p_220172_2_,
int p_220172_3_) |
static Direction |
func_220174_a(IBlockReader p_220174_0_,
BlockPos p_220174_1_) |
protected static java.util.Optional<Vec3d> |
func_220175_a(EntityType<?> p_220175_0_,
IWorldReader p_220175_1_,
BlockPos p_220175_2_) |
static Direction |
func_226862_h_(BlockState p_226862_0_) |
static TileEntityMerger.Type |
func_226863_i_(BlockState p_226863_0_) |
DyeColor |
getColor() |
MaterialColor |
getMaterialColor(BlockState state,
IBlockReader worldIn,
BlockPos pos)
非推奨です。
call via
IBlockState#getMapColor(IBlockAccess,BlockPos) whenever possible.
Implementing/overriding is fine. |
long |
getPositionRandom(BlockState state,
BlockPos pos)
Return a random long to be passed to
IBakedModel#getQuads, used for random model rotations |
PushReaction |
getPushReaction(BlockState state)
非推奨です。
call via
IBlockState#getMobilityFlag() whenever possible. Implementing/overriding is fine. |
BlockRenderType |
getRenderType(BlockState state)
非推奨です。
call via
IBlockState#getRenderType() whenever possible. Implementing/overriding is fine. |
VoxelShape |
getShape(BlockState state,
IBlockReader worldIn,
BlockPos pos,
ISelectionContext context) |
BlockState |
getStateForPlacement(BlockItemUseContext context) |
void |
harvestBlock(World worldIn,
PlayerEntity player,
BlockPos pos,
BlockState state,
TileEntity te,
ItemStack stack)
Spawns the block's drops in the world.
|
ActionResultType |
onBlockActivated(BlockState state,
World worldIn,
BlockPos pos,
PlayerEntity player,
Hand handIn,
BlockRayTraceResult hit) |
void |
onBlockHarvested(World worldIn,
BlockPos pos,
BlockState state,
PlayerEntity player)
Called before the Block is set to air in the world.
|
void |
onBlockPlacedBy(World worldIn,
BlockPos pos,
BlockState state,
LivingEntity placer,
ItemStack stack)
Called by ItemBlocks after a block is set in the world, to allow post-place logic
|
void |
onFallenUpon(World worldIn,
BlockPos pos,
Entity entityIn,
float fallDistance)
Block's chance to react to a living entity falling on it.
|
void |
onLanded(IBlockReader worldIn,
Entity entityIn)
Called when an Entity lands on this Block.
|
BlockState |
updatePostPlacement(BlockState stateIn,
Direction facing,
BlockState facingState,
IWorld worldIn,
BlockPos currentPos,
BlockPos facingPos)
Update the provided state given the provided neighbor facing and neighbor state, returning a new state.
|
mirror, rotateaddInformation, animateTick, asItem, canDropFromExplosion, canEntitySpawn, cannotAttach, canProvidePower, canSpawnInBlock, canSustainPlant, causesSuffocation, doesSideFillSquare, dropXpOnBlockBreak, eventReceived, fillItemGroup, fillWithRain, getAmbientOcclusionLightValue, getBlockFromItem, getBlockHardness, getCollisionShape, getComparatorInputOverride, getContainer, getDefaultState, getDrops, getDrops, getDrops, getExplosionResistance, getFluidState, getHarvestLevel, getHarvestTool, getItem, getJumpFactor, getLightValue, getLootTable, getMaterial, getNameTextComponent, getOffset, getOffsetType, getOpacity, getPlayerRelativeBlockHardness, getRaytraceShape, getRenderShape, getSlipperiness, getSlipperiness, getSoundType, getSpeedFactor, getStateById, getStateContainer, getStateId, getStrongPower, getTags, getTranslationKey, getValidBlockForPosition, getWeakPower, hasComparatorInputOverride, hasEnoughSolidSide, hasSolidSide, hasSolidSideOnTop, hasTileEntity, isAir, isEmissiveRendering, isIn, isNormalCube, isOpaque, isOpaqueCube, isReplaceable, isReplaceable, isSideInvisible, isSolid, isTransparent, isValidPosition, isVariableOpacity, isViewBlocking, makeCuboidShape, needsPostProcessing, neighborChanged, nudgeEntitiesWithNewState, onBlockAdded, onBlockClicked, onEntityCollision, onEntityWalk, onExplosionDestroy, onPlayerDestroy, onProjectileCollision, onReplaced, propagatesSkylightDown, randomTick, replaceBlock, setDefaultState, shouldSideBeRendered, spawnAdditionalDrops, spawnAsEntity, 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, canStickTo, catchFire, collisionExtendsVertically, createTileEntity, 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, isConduitFrame, isFertile, isFireSource, isFlammable, isFoliage, isLadder, isPortalFrame, isReplaceableOreGen, isSlimeBlock, isStickyBlock, isToolEffective, observedNeighborChange, onBlockExploded, onNeighborChange, onPlantGrow, recolorBlock, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlaypublic 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)
IBlockState#getMapColor(IBlockAccess,BlockPos) whenever possible.
Implementing/overriding is fine.getMaterialColor クラス内 Block@Nullable public static Direction func_220174_a(IBlockReader p_220174_0_, BlockPos p_220174_1_)
public ActionResultType onBlockActivated(BlockState state, World worldIn, BlockPos pos, PlayerEntity player, Hand handIn, BlockRayTraceResult hit)
onBlockActivated クラス内 Blockpublic void onFallenUpon(World worldIn, BlockPos pos, Entity entityIn, float fallDistance)
onFallenUpon クラス内 Blockpublic void onLanded(IBlockReader worldIn, Entity entityIn)
public BlockState updatePostPlacement(BlockState stateIn, Direction facing, BlockState facingState, IWorld worldIn, BlockPos currentPos, BlockPos facingPos)
updatePostPlacement クラス内 Blockpublic void harvestBlock(World worldIn, PlayerEntity player, BlockPos pos, BlockState state, @Nullable TileEntity te, ItemStack stack)
harvestBlock クラス内 Blockpublic void onBlockHarvested(World worldIn, BlockPos pos, BlockState state, PlayerEntity player)
onBlockHarvested クラス内 Block@Nullable public BlockState getStateForPlacement(BlockItemUseContext context)
getStateForPlacement クラス内 Blockpublic VoxelShape getShape(BlockState state, IBlockReader worldIn, BlockPos pos, ISelectionContext context)
public static Direction func_226862_h_(BlockState p_226862_0_)
public static TileEntityMerger.Type func_226863_i_(BlockState p_226863_0_)
public 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)
IBlockState#getMobilityFlag() whenever possible. Implementing/overriding is fine.getPushReaction クラス内 Blockpublic BlockRenderType getRenderType(BlockState state)
IBlockState#getRenderType() whenever possible. Implementing/overriding is fine.getRenderType クラス内 Blockprotected void fillStateContainer(StateContainer.Builder<Block,BlockState> builder)
fillStateContainer クラス内 Blockpublic TileEntity createNewTileEntity(IBlockReader worldIn)
createNewTileEntity インタフェース内 ITileEntityProviderpublic void onBlockPlacedBy(World worldIn, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack stack)
onBlockPlacedBy クラス内 Blockpublic DyeColor getColor()
public long getPositionRandom(BlockState state, BlockPos pos)
IBakedModel#getQuads, used for random model rotationsgetPositionRandom クラス内 Blockpublic boolean allowsMovement(BlockState state, IBlockReader worldIn, BlockPos pos, PathType type)
allowsMovement クラス内 Block