public class HopperBlock extends ContainerBlock
Block.OffsetType, Block.Properties, Block.RenderSideCacheKey| Modifier and Type | Field and Description |
|---|---|
private static VoxelShape |
DOWN_RAYTRACE_SHAPE |
private static VoxelShape |
DOWN_SHAPE |
private static VoxelShape |
EAST_RAYTRACE_SHAPE |
private static VoxelShape |
EAST_SHAPE |
static BooleanProperty |
ENABLED |
static DirectionProperty |
FACING |
private static VoxelShape |
field_196326_A |
private static VoxelShape |
INPUT_MIDDLE_SHAPE |
private static VoxelShape |
INPUT_SHAPE |
private static VoxelShape |
MIDDLE_SHAPE |
private static VoxelShape |
NORTH_RAYTRACE_SHAPE |
private static VoxelShape |
NORTH_SHAPE |
private static VoxelShape |
SOUTH_RAYTRACE_SHAPE |
private static VoxelShape |
SOUTH_SHAPE |
private static VoxelShape |
WEST_RAYTRACE_SHAPE |
private static VoxelShape |
WEST_SHAPE |
BLOCK_STATE_IDS, blockHardness, blockResistance, blocksMovement, lightValue, LOGGER, material, materialColor, RANDOM, soundType, stateContainer, ticksRandomlydelegate| Constructor and Description |
|---|
HopperBlock(Block.Properties properties) |
eventReceived, getContaineraddInformation, animateTick, asItem, canDropFromExplosion, canEntitySpawn, cannotAttach, canProvidePower, canSpawnInBlock, canSustainPlant, causesSuffocation, doesSideFillSquare, dropXpOnBlockBreak, fillItemGroup, fillWithRain, getAmbientOcclusionLightValue, getBlockFromItem, getBlockHardness, getCollisionShape, getDefaultState, getDrops, getDrops, getDrops, getExplosionResistance, getFluidState, getHarvestLevel, getHarvestTool, getItem, getJumpFactor, getLightValue, getLootTable, getMaterial, getMaterialColor, getNameTextComponent, getOffset, getOffsetType, getOpacity, getPlayerRelativeBlockHardness, getPositionRandom, getPushReaction, 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, nudgeEntitiesWithNewState, onBlockClicked, onBlockHarvested, onEntityWalk, onExplosionDestroy, onFallenUpon, onLanded, onPlayerDestroy, onProjectileCollision, propagatesSkylightDown, randomTick, replaceBlock, setDefaultState, shouldSideBeRendered, spawnAdditionalDrops, spawnAsEntity, spawnDrops, spawnDrops, spawnDrops, tick, tickRate, ticksRandomly, toString, updateDiagonalNeighbors, updateNeighbors, updatePostPlacementgetRegistryName, 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 DirectionProperty FACING
public static final BooleanProperty ENABLED
private static final VoxelShape INPUT_SHAPE
private static final VoxelShape MIDDLE_SHAPE
private static final VoxelShape INPUT_MIDDLE_SHAPE
private static final VoxelShape field_196326_A
private static final VoxelShape DOWN_SHAPE
private static final VoxelShape EAST_SHAPE
private static final VoxelShape NORTH_SHAPE
private static final VoxelShape SOUTH_SHAPE
private static final VoxelShape WEST_SHAPE
private static final VoxelShape DOWN_RAYTRACE_SHAPE
private static final VoxelShape EAST_RAYTRACE_SHAPE
private static final VoxelShape NORTH_RAYTRACE_SHAPE
private static final VoxelShape SOUTH_RAYTRACE_SHAPE
private static final VoxelShape WEST_RAYTRACE_SHAPE
public HopperBlock(Block.Properties properties)
public VoxelShape getShape(BlockState state, IBlockReader worldIn, BlockPos pos, ISelectionContext context)
public VoxelShape getRaytraceShape(BlockState state, IBlockReader worldIn, BlockPos pos)
getRaytraceShape in class Blockpublic BlockState getStateForPlacement(BlockItemUseContext context)
getStateForPlacement in class Blockpublic TileEntity createNewTileEntity(IBlockReader worldIn)
public void onBlockPlacedBy(World worldIn, BlockPos pos, BlockState state, LivingEntity placer, ItemStack stack)
onBlockPlacedBy in class Blockpublic void onBlockAdded(BlockState state, World worldIn, BlockPos pos, BlockState oldState, boolean isMoving)
onBlockAdded in class Blockpublic ActionResultType onBlockActivated(BlockState state, World worldIn, BlockPos pos, PlayerEntity player, Hand handIn, BlockRayTraceResult hit)
onBlockActivated in class Blockpublic void neighborChanged(BlockState state, World worldIn, BlockPos pos, Block blockIn, BlockPos fromPos, boolean isMoving)
neighborChanged in class Blockprivate void updateState(World worldIn, BlockPos pos, BlockState state)
public void onReplaced(BlockState state, World worldIn, BlockPos pos, BlockState newState, boolean isMoving)
onReplaced in class Blockpublic BlockRenderType getRenderType(BlockState state)
getRenderType in class ContainerBlockpublic boolean hasComparatorInputOverride(BlockState state)
hasComparatorInputOverride in class Blockpublic int getComparatorInputOverride(BlockState blockState, World worldIn, BlockPos pos)
getComparatorInputOverride in class Blockpublic BlockState rotate(BlockState state, Rotation rot)
public BlockState mirror(BlockState state, Mirror mirrorIn)
protected void fillStateContainer(StateContainer.Builder<Block,BlockState> builder)
fillStateContainer in class Blockpublic void onEntityCollision(BlockState state, World worldIn, BlockPos pos, Entity entityIn)
onEntityCollision in class Blockpublic boolean allowsMovement(BlockState state, IBlockReader worldIn, BlockPos pos, PathType type)
allowsMovement in class Block