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_FACING
BLOCK_STATE_IDS, blockHardness, blockResistance, blocksMovement, lightValue, LOGGER, material, materialColor, RANDOM, soundType, stateContainer, ticksRandomly
delegate
コンストラクタと説明 |
---|
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, rotate
addInformation, 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, updateNeighbors
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addDestroyEffects, 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, shouldDisplayFluidOverlay
public 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
クラス内 Block
public void onFallenUpon(World worldIn, BlockPos pos, Entity entityIn, float fallDistance)
onFallenUpon
クラス内 Block
public void onLanded(IBlockReader worldIn, Entity entityIn)
public BlockState updatePostPlacement(BlockState stateIn, Direction facing, BlockState facingState, IWorld worldIn, BlockPos currentPos, BlockPos facingPos)
updatePostPlacement
クラス内 Block
public void harvestBlock(World worldIn, PlayerEntity player, BlockPos pos, BlockState state, @Nullable TileEntity te, ItemStack stack)
harvestBlock
クラス内 Block
public void onBlockHarvested(World worldIn, BlockPos pos, BlockState state, PlayerEntity player)
onBlockHarvested
クラス内 Block
@Nullable public BlockState getStateForPlacement(BlockItemUseContext context)
getStateForPlacement
クラス内 Block
public 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
クラス内 Block
public BlockRenderType getRenderType(BlockState state)
IBlockState#getRenderType()
whenever possible. Implementing/overriding is fine.getRenderType
クラス内 Block
protected void fillStateContainer(StateContainer.Builder<Block,BlockState> builder)
fillStateContainer
クラス内 Block
public TileEntity createNewTileEntity(IBlockReader worldIn)
createNewTileEntity
インタフェース内 ITileEntityProvider
public void onBlockPlacedBy(World worldIn, BlockPos pos, BlockState state, @Nullable LivingEntity placer, ItemStack stack)
onBlockPlacedBy
クラス内 Block
public DyeColor getColor()
public long getPositionRandom(BlockState state, BlockPos pos)
IBakedModel#getQuads
, used for random model rotationsgetPositionRandom
クラス内 Block
public boolean allowsMovement(BlockState state, IBlockReader worldIn, BlockPos pos, PathType type)
allowsMovement
クラス内 Block