Package net.minecraft.block
Class DropperBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.BlockWithEntity
net.minecraft.block.DispenserBlock
net.minecraft.block.DropperBlock
- All Implemented Interfaces:
- BlockEntityProvider,- ItemConvertible,- ToggleableFeature
- Mappings:
- Namespace - Name - named - net/minecraft/block/DropperBlock- intermediary - net/minecraft/class_2325- official - dlz
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.block.AbstractBlockAbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.Offsetter, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final DispenserBehaviorstatic final com.mojang.serialization.MapCodec<DropperBlock> private static final LoggerFields inherited from class net.minecraft.block.DispenserBlockBEHAVIORS, FACING, TRIGGEREDFields inherited from class net.minecraft.block.Blockfield_31023, field_31024, field_31025, field_31035, FORCE_STATE, MOVED, NO_REDRAW, NOTIFY_ALL, NOTIFY_ALL_AND_REDRAW, NOTIFY_LISTENERS, NOTIFY_NEIGHBORS, REDRAW_ON_MAIN_THREAD, SKIP_DROPS, SKIP_REDSTONE_WIRE_STATE_REPLACEMENT, STATE_IDS, stateManagerFields inherited from class net.minecraft.block.AbstractBlockcollidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableKey, randomTicks, requiredFeatures, resistance, settings, slipperiness, soundGroup, translationKey, velocityMultiplierFields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeatureFEATURE_ENABLED_REGISTRY_KEYS
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncreateBlockEntity(BlockPos pos, BlockState state) Returns a new block entity instance.protected voiddispense(ServerWorld world, BlockState state, BlockPos pos) protected DispenserBehaviorgetBehaviorForItem(World world, ItemStack stack) com.mojang.serialization.MapCodec<DropperBlock> getCodec()Methods inherited from class net.minecraft.block.DispenserBlockappendProperties, getComparatorOutput, getOutputLocation, getOutputLocation, getPlacementState, hasComparatorOutput, mirror, neighborUpdate, onStateReplaced, onUse, registerBehavior, registerProjectileBehavior, rotate, scheduledTickMethods inherited from class net.minecraft.block.BlockWithEntitycreateScreenHandlerFactory, onSyncedBlockEvent, validateTickerMethods inherited from class net.minecraft.block.BlockafterBreak, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropExperienceWhenMined, dropStack, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getRawIdFromState, getRegistryEntry, getShapesForStates, getSlipperiness, getStateFromRawId, getStateManager, getStateWithProperties, getVelocityMultiplier, hasDynamicBounds, hasTopRim, isFaceFullSquare, isShapeFullCube, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, spawnBreakParticles, toStringMethods inherited from class net.minecraft.block.AbstractBlockcalcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canPlaceAt, canReplace, createCodec, createSettingsCodec, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getHardness, getInsideCollisionShape, getLootTableKey, getMaxHorizontalModelOffset, getOpacity, getOutlineShape, getPickStack, getRaycastShape, getRenderingSeed, getRenderType, getRequiredFeatures, getSettings, getSidesShape, getSoundGroup, getStateForNeighborUpdate, getStrongRedstonePower, getTranslationKey, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasRandomTicks, hasSidedTransparency, isShapeFullCube, isSideInvisible, isTransparent, onBlockAdded, onBlockBreakStart, onEntityCollision, onExploded, onProjectileHit, onStacksDropped, onUseWithItem, prepare, randomTickMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.block.BlockEntityProvidergetGameEventListener, getTickerMethods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeatureisEnabled
- 
Field Details- 
LOGGER- Mappings:
- Namespace - Name - Mixin selector - named - LOGGER- Lnet/minecraft/block/DropperBlock;LOGGER:Lorg/slf4j/Logger;- intermediary - field_46213- Lnet/minecraft/class_2325;field_46213:Lorg/slf4j/Logger;- official - f- Ldlz;f:Lorg/slf4j/Logger;
 
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/block/DropperBlock;CODEC:Lcom/mojang/serialization/MapCodec;- intermediary - field_46341- Lnet/minecraft/class_2325;field_46341:Lcom/mojang/serialization/MapCodec;- official - e- Ldlz;e:Lcom/mojang/serialization/MapCodec;
 
- 
BEHAVIOR- Mappings:
- Namespace - Name - Mixin selector - named - BEHAVIOR- Lnet/minecraft/block/DropperBlock;BEHAVIOR:Lnet/minecraft/block/dispenser/DispenserBehavior;- intermediary - field_10949- Lnet/minecraft/class_2325;field_10949:Lnet/minecraft/class_2357;- official - g- Ldlz;g:Llc;
 
 
- 
- 
Constructor Details- 
DropperBlock- Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)V- intermediary - <init>- Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)V- official - <init>- Ldwx;<init>(Ldwx$d;)V
 
 
- 
- 
Method Details- 
getCodec- Overrides:
- getCodecin class- DispenserBlock
- Mappings:
- Namespace - Name - Mixin selector - named - getCodec- Lnet/minecraft/block/AbstractBlock;getCodec()Lcom/mojang/serialization/MapCodec;- intermediary - method_53969- Lnet/minecraft/class_4970;method_53969()Lcom/mojang/serialization/MapCodec;- official - a- Ldwx;a()Lcom/mojang/serialization/MapCodec;
 
- 
getBehaviorForItem- Overrides:
- getBehaviorForItemin class- DispenserBlock
- Mappings:
- Namespace - Name - Mixin selector - named - getBehaviorForItem- Lnet/minecraft/block/DispenserBlock;getBehaviorForItem(Lnet/minecraft/world/World;Lnet/minecraft/item/ItemStack;)Lnet/minecraft/block/dispenser/DispenserBehavior;- intermediary - method_10011- Lnet/minecraft/class_2315;method_10011(Lnet/minecraft/class_1937;Lnet/minecraft/class_1799;)Lnet/minecraft/class_2357;- official - a- Ldlt;a(Ldgj;Lcwq;)Llc;
 
- 
createBlockEntityReturns a new block entity instance.For example: @Override public BlockEntity createBlockEntity(BlockPos pos, BlockState state) { return new MyBlockEntity(pos, state); }- Specified by:
- createBlockEntityin interface- BlockEntityProvider
- Overrides:
- createBlockEntityin class- DispenserBlock
- Returns:
- a new block entity instance
- Implementation Note:
- While this is marked as nullable, in practice this should never return
 null.PistonExtensionBlockis the only block in vanilla that returnsnullinside the implementation.
- Mappings:
- Namespace - Name - Mixin selector - named - createBlockEntity- Lnet/minecraft/block/BlockEntityProvider;createBlockEntity(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/entity/BlockEntity;- intermediary - method_10123- Lnet/minecraft/class_2343;method_10123(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Lnet/minecraft/class_2586;- official - a- Ldmg;a(Lji;Ldwy;)Ldua;
 
- 
dispense- Overrides:
- dispensein class- DispenserBlock
- Mappings:
- Namespace - Name - Mixin selector - named - dispense- Lnet/minecraft/block/DispenserBlock;dispense(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;)V- intermediary - method_10012- Lnet/minecraft/class_2315;method_10012(Lnet/minecraft/class_3218;Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;)V- official - a- Ldlt;a(Lard;Ldwy;Lji;)V
 
 
-