public abstract class AbstractButtonBlock extends HorizontalFaceBlock
Block.OffsetType, Block.Properties, Block.RenderSideCacheKey
修飾子とタイプ | フィールドと説明 |
---|---|
protected static VoxelShape |
AABB_EAST_OFF |
protected static VoxelShape |
AABB_EAST_ON |
protected static VoxelShape |
AABB_NORTH_OFF |
protected static VoxelShape |
AABB_NORTH_ON |
protected static VoxelShape |
AABB_SOUTH_OFF |
protected static VoxelShape |
AABB_SOUTH_ON |
protected static VoxelShape |
AABB_WEST_OFF |
protected static VoxelShape |
AABB_WEST_ON |
protected static VoxelShape |
field_196370_b |
protected static VoxelShape |
field_196371_c |
protected static VoxelShape |
field_196372_E |
protected static VoxelShape |
field_196373_F |
protected static VoxelShape |
field_196374_G |
protected static VoxelShape |
field_196375_H |
protected static VoxelShape |
field_196376_y |
protected static VoxelShape |
field_196377_z |
static BooleanProperty |
POWERED |
FACE
HORIZONTAL_FACING
BLOCK_STATE_IDS, blockHardness, blockResistance, blocksMovement, lightValue, LOGGER, material, materialColor, RANDOM, soundType, stateContainer, ticksRandomly
delegate
修飾子 | コンストラクタと説明 |
---|---|
protected |
AbstractButtonBlock(boolean isWooden,
Block.Properties properties) |
修飾子とタイプ | メソッドと説明 |
---|---|
boolean |
canProvidePower(BlockState state)
非推奨です。
call via
IBlockState#canProvidePower() whenever possible. Implementing/overriding is fine. |
protected void |
fillStateContainer(StateContainer.Builder<Block,BlockState> builder) |
void |
func_226910_d_(BlockState p_226910_1_,
World p_226910_2_,
BlockPos p_226910_3_) |
VoxelShape |
getShape(BlockState state,
IBlockReader worldIn,
BlockPos pos,
ISelectionContext context) |
protected abstract SoundEvent |
getSoundEvent(boolean p_196369_1_) |
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. |
ActionResultType |
onBlockActivated(BlockState state,
World worldIn,
BlockPos pos,
PlayerEntity player,
Hand handIn,
BlockRayTraceResult hit) |
void |
onEntityCollision(BlockState state,
World worldIn,
BlockPos pos,
Entity entityIn) |
void |
onReplaced(BlockState state,
World worldIn,
BlockPos pos,
BlockState newState,
boolean isMoving) |
protected void |
playSound(PlayerEntity playerIn,
IWorld worldIn,
BlockPos pos,
boolean p_196367_4_) |
void |
tick(BlockState state,
ServerWorld worldIn,
BlockPos pos,
java.util.Random rand) |
int |
tickRate(IWorldReader worldIn)
How many world ticks before ticking
|
func_220185_b, getFacing, getStateForPlacement, isValidPosition, updatePostPlacement
mirror, rotate
addInformation, allowsMovement, animateTick, asItem, canDropFromExplosion, canEntitySpawn, cannotAttach, 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, getMaterialColor, getNameTextComponent, getOffset, getOffsetType, getOpacity, getPlayerRelativeBlockHardness, getPositionRandom, getPushReaction, getRaytraceShape, getRenderShape, getRenderType, getSlipperiness, getSlipperiness, getSoundType, getSpeedFactor, getStateById, getStateContainer, getStateId, getTags, getTranslationKey, getValidBlockForPosition, harvestBlock, hasComparatorInputOverride, hasEnoughSolidSide, hasSolidSide, hasSolidSideOnTop, hasTileEntity, isAir, isEmissiveRendering, isIn, isNormalCube, isOpaque, isOpaqueCube, isReplaceable, isReplaceable, isSideInvisible, isSolid, isTransparent, isVariableOpacity, isViewBlocking, makeCuboidShape, needsPostProcessing, neighborChanged, nudgeEntitiesWithNewState, onBlockAdded, onBlockClicked, onBlockHarvested, onBlockPlacedBy, onEntityWalk, onExplosionDestroy, onFallenUpon, onLanded, onPlayerDestroy, onProjectileCollision, propagatesSkylightDown, randomTick, replaceBlock, setDefaultState, shouldSideBeRendered, spawnAdditionalDrops, spawnAsEntity, spawnDrops, spawnDrops, spawnDrops, 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 BooleanProperty POWERED
protected static final VoxelShape field_196370_b
protected static final VoxelShape field_196371_c
protected static final VoxelShape field_196376_y
protected static final VoxelShape field_196377_z
protected static final VoxelShape AABB_NORTH_OFF
protected static final VoxelShape AABB_SOUTH_OFF
protected static final VoxelShape AABB_WEST_OFF
protected static final VoxelShape AABB_EAST_OFF
protected static final VoxelShape field_196372_E
protected static final VoxelShape field_196373_F
protected static final VoxelShape field_196374_G
protected static final VoxelShape field_196375_H
protected static final VoxelShape AABB_NORTH_ON
protected static final VoxelShape AABB_SOUTH_ON
protected static final VoxelShape AABB_WEST_ON
protected static final VoxelShape AABB_EAST_ON
protected AbstractButtonBlock(boolean isWooden, Block.Properties properties)
public int tickRate(IWorldReader worldIn)
public VoxelShape getShape(BlockState state, IBlockReader worldIn, BlockPos pos, ISelectionContext context)
public ActionResultType onBlockActivated(BlockState state, World worldIn, BlockPos pos, PlayerEntity player, Hand handIn, BlockRayTraceResult hit)
onBlockActivated
クラス内 Block
public void func_226910_d_(BlockState p_226910_1_, World p_226910_2_, BlockPos p_226910_3_)
protected void playSound(@Nullable PlayerEntity playerIn, IWorld worldIn, BlockPos pos, boolean p_196367_4_)
protected abstract SoundEvent getSoundEvent(boolean p_196369_1_)
public void onReplaced(BlockState state, World worldIn, BlockPos pos, BlockState newState, boolean isMoving)
onReplaced
クラス内 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 canProvidePower(BlockState state)
IBlockState#canProvidePower()
whenever possible. Implementing/overriding is fine.canProvidePower
クラス内 Block
public void tick(BlockState state, ServerWorld worldIn, BlockPos pos, java.util.Random rand)
public void onEntityCollision(BlockState state, World worldIn, BlockPos pos, Entity entityIn)
onEntityCollision
クラス内 Block
protected void fillStateContainer(StateContainer.Builder<Block,BlockState> builder)
fillStateContainer
クラス内 Block