Package net.minecraft.block
Class HopperBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.BlockWithEntity
net.minecraft.block.HopperBlock
- All Implemented Interfaces:
BlockEntityProvider,ItemConvertible
public class HopperBlock extends BlockWithEntity
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A> -
Field Summary
Fields Modifier and Type Field Description private static VoxelShapeDEFAULT_SHAPEprivate static VoxelShapeDOWN_RAY_TRACE_SHAPEprivate static VoxelShapeDOWN_SHAPEprivate static VoxelShapeEAST_RAY_TRACE_SHAPEprivate static VoxelShapeEAST_SHAPEstatic BooleanPropertyENABLEDstatic DirectionPropertyFACINGprivate static VoxelShapeMIDDLE_SHAPEprivate static VoxelShapeNORTH_RAY_TRACE_SHAPEprivate static VoxelShapeNORTH_SHAPEprivate static VoxelShapeOUTSIDE_SHAPEprivate static VoxelShapeSOUTH_RAY_TRACE_SHAPEprivate static VoxelShapeSOUTH_SHAPEprivate static VoxelShapeTOP_SHAPEprivate static VoxelShapeWEST_RAY_TRACE_SHAPEprivate static VoxelShapeWEST_SHAPEFields inherited from class net.minecraft.block.AbstractBlock
collidable, dynamicBounds, FACINGS, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier -
Constructor Summary
Constructors Constructor Description HopperBlock(AbstractBlock.Settings settings) -
Method Summary
Methods inherited from class net.minecraft.block.BlockWithEntity
createScreenHandlerFactory, onSyncedBlockEventMethods inherited from class net.minecraft.block.Block
addStacksForDisplay, afterBreak, asBlock, asItem, buildTooltip, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getRawIdFromState, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasRandomTicks, hasTopRim, is, isFaceFullSquare, isIn, isShapeFullCube, isSideSolidFullSquare, isTranslucent, method_30094, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onSteppedOn, postProcessState, pushEntitiesUpBeforeBlockChange, rainTick, randomDisplayTick, replaceBlock, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, toStringMethods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPlaceAt, canReplace, emitsRedstonePower, getAmbientOcclusionLightLevel, getCollisionShape, getCullingShape, getDefaultMaterialColor, getDroppedStacks, getFluidState, getLootTableId, getOffsetType, getOpacity, getPistonBehavior, getRenderingSeed, getSidesShape, getStateForNeighborUpdate, getStrongRedstonePower, getVisualShape, getWeakRedstonePower, hasBlockEntity, hasSidedTransparency, isSideInvisible, onBlockBreakStart, onProjectileHit, onStacksDropped, prepare, randomTick, scheduledTick
-
Field Details
-
Constructor Details
-
Method Details
-
getOutlineShape
public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)- Overrides:
getOutlineShapein classAbstractBlock
-
getRayTraceShape
- Overrides:
getRayTraceShapein classAbstractBlock
-
getPlacementState
- Overrides:
getPlacementStatein classBlock
-
createBlockEntity
-
onPlaced
public void onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) -
onBlockAdded
public void onBlockAdded(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify)- Overrides:
onBlockAddedin classAbstractBlock
-
onUse
public ActionResult onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit)- Overrides:
onUsein classAbstractBlock
-
neighborUpdate
public void neighborUpdate(BlockState state, World world, BlockPos pos, Block block, BlockPos fromPos, boolean notify)- Overrides:
neighborUpdatein classAbstractBlock
-
updateEnabled
-
onStateReplaced
public void onStateReplaced(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved)Called inWorldChunk.setBlockState(BlockPos, BlockState, boolean)ifnewStateis different fromstate. Vanilla blocks perform removal cleanups here.- Overrides:
onStateReplacedin classAbstractBlock
-
getRenderType
- Overrides:
getRenderTypein classBlockWithEntity
-
hasComparatorOutput
- Overrides:
hasComparatorOutputin classAbstractBlock
-
getComparatorOutput
- Overrides:
getComparatorOutputin classAbstractBlock
-
rotate
- Overrides:
rotatein classAbstractBlock
-
mirror
- Overrides:
mirrorin classAbstractBlock
-
appendProperties
- Overrides:
appendPropertiesin classBlock
-
onEntityCollision
- Overrides:
onEntityCollisionin classAbstractBlock
-
canPathfindThrough
public boolean canPathfindThrough(BlockState state, BlockView world, BlockPos pos, NavigationType type)- Overrides:
canPathfindThroughin classAbstractBlock
-