public class ShulkerBoxBlock extends ContainerBlock
Block.OffsetType, Block.Properties, Block.RenderSideCacheKey
修飾子とタイプ | フィールドと説明 |
---|---|
static ResourceLocation |
CONTENTS |
static EnumProperty<Direction> |
FACING |
BLOCK_STATE_IDS, blockHardness, blockResistance, blocksMovement, lightValue, LOGGER, material, materialColor, RANDOM, soundType, stateContainer, ticksRandomly
delegate
コンストラクタと説明 |
---|
ShulkerBoxBlock(DyeColor color,
Block.Properties properties) |
修飾子とタイプ | メソッドと説明 |
---|---|
void |
addInformation(ItemStack stack,
IBlockReader worldIn,
java.util.List<ITextComponent> tooltip,
ITooltipFlag flagIn) |
boolean |
causesSuffocation(BlockState state,
IBlockReader worldIn,
BlockPos pos) |
TileEntity |
createNewTileEntity(IBlockReader worldIn) |
protected void |
fillStateContainer(StateContainer.Builder<Block,BlockState> builder) |
static Block |
getBlockByColor(DyeColor colorIn) |
DyeColor |
getColor() |
static ItemStack |
getColoredItemStack(DyeColor colorIn) |
static DyeColor |
getColorFromBlock(Block blockIn) |
static DyeColor |
getColorFromItem(Item itemIn) |
int |
getComparatorInputOverride(BlockState blockState,
World worldIn,
BlockPos pos)
非推奨です。
call via
IBlockState#getComparatorInputOverride(World,BlockPos) whenever possible.
Implementing/overriding is fine. |
java.util.List<ItemStack> |
getDrops(BlockState state,
LootContext.Builder builder) |
ItemStack |
getItem(IBlockReader worldIn,
BlockPos pos,
BlockState state) |
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) |
boolean |
hasComparatorInputOverride(BlockState state)
非推奨です。
call via
IBlockState#hasComparatorInputOverride() whenever possible. Implementing/overriding
is fine. |
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 |
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 |
onReplaced(BlockState state,
World worldIn,
BlockPos pos,
BlockState newState,
boolean isMoving) |
BlockState |
rotate(BlockState state,
Rotation rot)
非推奨です。
call via
IBlockState#withRotation(Rotation) whenever possible. Implementing/overriding is
fine. |
eventReceived, getContainer
allowsMovement, animateTick, asItem, canDropFromExplosion, canEntitySpawn, cannotAttach, canProvidePower, canSpawnInBlock, canSustainPlant, doesSideFillSquare, dropXpOnBlockBreak, fillItemGroup, fillWithRain, getAmbientOcclusionLightValue, getBlockFromItem, getBlockHardness, getCollisionShape, getDefaultState, getDrops, getDrops, getExplosionResistance, getFluidState, getHarvestLevel, getHarvestTool, getJumpFactor, getLightValue, getLootTable, getMaterial, getMaterialColor, getNameTextComponent, getOffset, getOffsetType, getOpacity, getPlayerRelativeBlockHardness, getPositionRandom, getRaytraceShape, getRenderShape, getSlipperiness, getSlipperiness, getSoundType, getSpeedFactor, getStateById, getStateContainer, getStateId, getStrongPower, getTags, getTranslationKey, getValidBlockForPosition, getWeakPower, harvestBlock, 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, onFallenUpon, onLanded, onPlayerDestroy, onProjectileCollision, propagatesSkylightDown, randomTick, replaceBlock, setDefaultState, shouldSideBeRendered, spawnAdditionalDrops, spawnAsEntity, spawnDrops, spawnDrops, spawnDrops, tick, 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 EnumProperty<Direction> FACING
public static final ResourceLocation CONTENTS
public ShulkerBoxBlock(@Nullable DyeColor color, Block.Properties properties)
public TileEntity createNewTileEntity(IBlockReader worldIn)
public boolean causesSuffocation(BlockState state, IBlockReader worldIn, BlockPos pos)
causesSuffocation
クラス内 Block
public BlockRenderType getRenderType(BlockState state)
IBlockState#getRenderType()
whenever possible. Implementing/overriding is fine.getRenderType
クラス内 ContainerBlock
public ActionResultType onBlockActivated(BlockState state, World worldIn, BlockPos pos, PlayerEntity player, Hand handIn, BlockRayTraceResult hit)
onBlockActivated
クラス内 Block
public BlockState getStateForPlacement(BlockItemUseContext context)
getStateForPlacement
クラス内 Block
protected void fillStateContainer(StateContainer.Builder<Block,BlockState> builder)
fillStateContainer
クラス内 Block
public void onBlockHarvested(World worldIn, BlockPos pos, BlockState state, PlayerEntity player)
onBlockHarvested
クラス内 Block
public java.util.List<ItemStack> getDrops(BlockState state, LootContext.Builder builder)
public void onBlockPlacedBy(World worldIn, BlockPos pos, BlockState state, LivingEntity placer, ItemStack stack)
onBlockPlacedBy
クラス内 Block
public void onReplaced(BlockState state, World worldIn, BlockPos pos, BlockState newState, boolean isMoving)
onReplaced
クラス内 Block
public void addInformation(ItemStack stack, @Nullable IBlockReader worldIn, java.util.List<ITextComponent> tooltip, ITooltipFlag flagIn)
addInformation
クラス内 Block
public PushReaction getPushReaction(BlockState state)
IBlockState#getMobilityFlag()
whenever possible. Implementing/overriding is fine.getPushReaction
クラス内 Block
public VoxelShape getShape(BlockState state, IBlockReader worldIn, BlockPos pos, ISelectionContext context)
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 ItemStack getItem(IBlockReader worldIn, BlockPos pos, BlockState state)
@Nullable public DyeColor getColor()
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.