public class DropperBlock extends DispenserBlock
Block.NeighborGroup
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>
Modifier and Type | Field and Description |
---|---|
private static DispenserBehavior |
BEHAVIOR |
FACING, TRIGGERED
LOGGER, STATE_IDS, stateManager
collidable, dynamicBounds, FACINGS, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier
Constructor and Description |
---|
DropperBlock(AbstractBlock.Settings settings) |
Modifier and Type | Method and Description |
---|---|
BlockEntity |
createBlockEntity(BlockView world) |
protected void |
dispense(ServerWorld serverWorld,
BlockPos pos) |
protected DispenserBehavior |
getBehaviorForItem(ItemStack stack) |
appendProperties, getComparatorOutput, getOutputLocation, getPlacementState, getRenderType, hasComparatorOutput, mirror, neighborUpdate, onPlaced, onStateReplaced, onUse, registerBehavior, rotate, scheduledTick
createScreenHandlerFactory, onSyncedBlockEvent
addStacksForDisplay, afterBreak, appendTooltip, asBlock, asItem, 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, isTranslucent, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onSteppedOn, postProcessState, pushEntitiesUpBeforeBlockChange, rainTick, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, toString
calcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canPlaceAt, canReplace, emitsRedstonePower, getAmbientOcclusionLightLevel, getCollisionShape, getCullingShape, getDefaultMaterialColor, getDroppedStacks, getFluidState, getLootTableId, getOffsetType, getOpacity, getOutlineShape, getPistonBehavior, getRaycastShape, getRenderingSeed, getSidesShape, getStateForNeighborUpdate, getStrongRedstonePower, getVisualShape, getWeakRedstonePower, hasBlockEntity, hasSidedTransparency, isSideInvisible, onBlockAdded, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, prepare, randomTick
private static final DispenserBehavior BEHAVIOR
public DropperBlock(AbstractBlock.Settings settings)
protected DispenserBehavior getBehaviorForItem(ItemStack stack)
getBehaviorForItem
in class DispenserBlock
public BlockEntity createBlockEntity(BlockView world)
createBlockEntity
in interface BlockEntityProvider
createBlockEntity
in class DispenserBlock
protected void dispense(ServerWorld serverWorld, BlockPos pos)
dispense
in class DispenserBlock