public class LecternBlock extends ContainerBlock
Block.OffsetType, Block.Properties, Block.RenderSideCacheKey
修飾子とタイプ | フィールドと説明 |
---|---|
static DirectionProperty |
FACING |
static VoxelShape |
field_220159_d |
static VoxelShape |
field_220160_e |
static VoxelShape |
field_220161_f |
static VoxelShape |
field_220162_g |
static VoxelShape |
field_220163_w |
static VoxelShape |
field_220164_h |
static VoxelShape |
field_220165_i |
static VoxelShape |
field_220166_j |
static VoxelShape |
field_220167_k |
static BooleanProperty |
HAS_BOOK |
static BooleanProperty |
POWERED |
BLOCK_STATE_IDS, blockHardness, blockResistance, blocksMovement, lightValue, LOGGER, material, materialColor, RANDOM, soundType, stateContainer, ticksRandomly
delegate
修飾子 | コンストラクタと説明 |
---|---|
protected |
LecternBlock(Block.Properties properties) |
修飾子とタイプ | メソッドと説明 |
---|---|
boolean |
allowsMovement(BlockState state,
IBlockReader worldIn,
BlockPos pos,
PathType type) |
boolean |
canProvidePower(BlockState state)
非推奨です。
call via
IBlockState#canProvidePower() whenever possible. Implementing/overriding is fine. |
TileEntity |
createNewTileEntity(IBlockReader worldIn) |
protected void |
fillStateContainer(StateContainer.Builder<Block,BlockState> builder) |
VoxelShape |
getCollisionShape(BlockState state,
IBlockReader worldIn,
BlockPos pos,
ISelectionContext context) |
int |
getComparatorInputOverride(BlockState blockState,
World worldIn,
BlockPos pos)
非推奨です。
call via
IBlockState#getComparatorInputOverride(World,BlockPos) whenever possible.
Implementing/overriding is fine. |
INamedContainerProvider |
getContainer(BlockState state,
World worldIn,
BlockPos pos) |
VoxelShape |
getRenderShape(BlockState state,
IBlockReader worldIn,
BlockPos pos) |
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) |
int |
getStrongPower(BlockState blockState,
IBlockReader blockAccess,
BlockPos pos,
Direction side)
非推奨です。
call via
IBlockState#getStrongPower(IBlockAccess,BlockPos,EnumFacing) whenever possible.
Implementing/overriding is fine. |
int |
getWeakPower(BlockState blockState,
IBlockReader blockAccess,
BlockPos pos,
Direction side)
非推奨です。
call via
IBlockState#getWeakPower(IBlockAccess,BlockPos,EnumFacing) whenever possible.
Implementing/overriding is fine. |
boolean |
hasComparatorInputOverride(BlockState state)
非推奨です。
call via
IBlockState#hasComparatorInputOverride() whenever possible. Implementing/overriding
is fine. |
boolean |
isTransparent(BlockState state) |
BlockState |
mirror(BlockState state,
Mirror mirrorIn)
非推奨です。
call via
IBlockState#withMirror(Mirror) whenever possible. Implementing/overriding is fine. |
ActionResultType |
onBlockActivated(BlockState state,
World worldIn,
BlockPos pos,
PlayerEntity player,
Hand handIn,
BlockRayTraceResult hit) |
void |
onReplaced(BlockState state,
World worldIn,
BlockPos pos,
BlockState newState,
boolean isMoving) |
static void |
pulse(World worldIn,
BlockPos pos,
BlockState state) |
BlockState |
rotate(BlockState state,
Rotation rot)
非推奨です。
call via
IBlockState#withRotation(Rotation) whenever possible. Implementing/overriding is
fine. |
static void |
setHasBook(World worldIn,
BlockPos pos,
BlockState state,
boolean hasBook) |
void |
tick(BlockState state,
ServerWorld worldIn,
BlockPos pos,
java.util.Random rand) |
static boolean |
tryPlaceBook(World worldIn,
BlockPos pos,
BlockState state,
ItemStack stack) |
eventReceived
addInformation, animateTick, asItem, canDropFromExplosion, canEntitySpawn, cannotAttach, canSpawnInBlock, canSustainPlant, causesSuffocation, doesSideFillSquare, dropXpOnBlockBreak, fillItemGroup, fillWithRain, getAmbientOcclusionLightValue, getBlockFromItem, getBlockHardness, getDefaultState, getDrops, getDrops, getDrops, getExplosionResistance, getFluidState, getHarvestLevel, getHarvestTool, getItem, getJumpFactor, getLightValue, getLootTable, getMaterial, getMaterialColor, getNameTextComponent, getOffset, getOffsetType, getOpacity, getPlayerRelativeBlockHardness, getPositionRandom, getPushReaction, getRaytraceShape, getSlipperiness, getSlipperiness, getSoundType, getSpeedFactor, getStateById, getStateContainer, getStateId, getTags, getTranslationKey, getValidBlockForPosition, harvestBlock, hasEnoughSolidSide, hasSolidSide, hasSolidSideOnTop, hasTileEntity, isAir, isEmissiveRendering, isIn, isNormalCube, isOpaque, isOpaqueCube, isReplaceable, isReplaceable, isSideInvisible, isSolid, isValidPosition, isVariableOpacity, isViewBlocking, makeCuboidShape, needsPostProcessing, neighborChanged, nudgeEntitiesWithNewState, onBlockAdded, onBlockClicked, onBlockHarvested, onBlockPlacedBy, onEntityCollision, onEntityWalk, onExplosionDestroy, onFallenUpon, onLanded, onPlayerDestroy, onProjectileCollision, propagatesSkylightDown, randomTick, replaceBlock, setDefaultState, shouldSideBeRendered, spawnAdditionalDrops, spawnAsEntity, spawnDrops, spawnDrops, spawnDrops, tickRate, ticksRandomly, toString, updateDiagonalNeighbors, updateNeighbors, updatePostPlacement
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 DirectionProperty FACING
public static final BooleanProperty POWERED
public static final BooleanProperty HAS_BOOK
public static final VoxelShape field_220159_d
public static final VoxelShape field_220160_e
public static final VoxelShape field_220161_f
public static final VoxelShape field_220162_g
public static final VoxelShape field_220164_h
public static final VoxelShape field_220165_i
public static final VoxelShape field_220166_j
public static final VoxelShape field_220167_k
public static final VoxelShape field_220163_w
protected LecternBlock(Block.Properties properties)
public BlockRenderType getRenderType(BlockState state)
IBlockState#getRenderType()
whenever possible. Implementing/overriding is fine.getRenderType
クラス内 ContainerBlock
public VoxelShape getRenderShape(BlockState state, IBlockReader worldIn, BlockPos pos)
getRenderShape
クラス内 Block
public boolean isTransparent(BlockState state)
isTransparent
クラス内 Block
public BlockState getStateForPlacement(BlockItemUseContext context)
getStateForPlacement
クラス内 Block
public VoxelShape getCollisionShape(BlockState state, IBlockReader worldIn, BlockPos pos, ISelectionContext context)
getCollisionShape
クラス内 Block
public VoxelShape getShape(BlockState state, IBlockReader worldIn, BlockPos pos, ISelectionContext context)
public BlockState rotate(BlockState state, Rotation rot)
IBlockState#withRotation(Rotation)
whenever possible. Implementing/overriding is
fine.public BlockState mirror(BlockState state, Mirror mirrorIn)
IBlockState#withMirror(Mirror)
whenever possible. Implementing/overriding is fine.protected void fillStateContainer(StateContainer.Builder<Block,BlockState> builder)
fillStateContainer
クラス内 Block
@Nullable public TileEntity createNewTileEntity(IBlockReader worldIn)
public static boolean tryPlaceBook(World worldIn, BlockPos pos, BlockState state, ItemStack stack)
public static void setHasBook(World worldIn, BlockPos pos, BlockState state, boolean hasBook)
public static void pulse(World worldIn, BlockPos pos, BlockState state)
public void tick(BlockState state, ServerWorld worldIn, BlockPos pos, java.util.Random rand)
public void onReplaced(BlockState state, World worldIn, BlockPos pos, BlockState newState, boolean isMoving)
onReplaced
クラス内 Block
public boolean canProvidePower(BlockState state)
IBlockState#canProvidePower()
whenever possible. Implementing/overriding is fine.canProvidePower
クラス内 Block
public int getWeakPower(BlockState blockState, IBlockReader blockAccess, BlockPos pos, Direction side)
IBlockState#getWeakPower(IBlockAccess,BlockPos,EnumFacing)
whenever possible.
Implementing/overriding is fine.getWeakPower
クラス内 Block
public int getStrongPower(BlockState blockState, IBlockReader blockAccess, BlockPos pos, Direction side)
IBlockState#getStrongPower(IBlockAccess,BlockPos,EnumFacing)
whenever possible.
Implementing/overriding is fine.getStrongPower
クラス内 Block
public boolean hasComparatorInputOverride(BlockState state)
IBlockState#hasComparatorInputOverride()
whenever possible. Implementing/overriding
is fine.hasComparatorInputOverride
クラス内 Block
public int getComparatorInputOverride(BlockState blockState, World worldIn, BlockPos pos)
IBlockState#getComparatorInputOverride(World,BlockPos)
whenever possible.
Implementing/overriding is fine.getComparatorInputOverride
クラス内 Block
public ActionResultType onBlockActivated(BlockState state, World worldIn, BlockPos pos, PlayerEntity player, Hand handIn, BlockRayTraceResult hit)
onBlockActivated
クラス内 Block
@Nullable public INamedContainerProvider getContainer(BlockState state, World worldIn, BlockPos pos)
getContainer
クラス内 ContainerBlock
public boolean allowsMovement(BlockState state, IBlockReader worldIn, BlockPos pos, PathType type)
allowsMovement
クラス内 Block