Package net.minecraft.block
Class DispenserBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.DispenserBlock
- All Implemented Interfaces:
ItemConvertible
- Direct Known Subclasses:
DropperBlock
- Mappings:
Namespace Name official cfointermediary net/minecraft/class_2315named net/minecraft/block/DispenserBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.NeighborGroupNested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Map<Item,DispenserBehavior> static final DirectionPropertyprivate static final intstatic final BooleanPropertyFields inherited from class net.minecraft.block.Block
field_31022, field_31023, field_31024, field_31025, field_31035, FORCE_STATE, MOVED, NO_REDRAW, NOTIFY_ALL, NOTIFY_LISTENERS, NOTIFY_NEIGHBORS, REDRAW_ON_MAIN_THREAD, SKIP_DROPS, SKIP_LIGHTING_UPDATES, STATE_IDS, stateManagerFields inherited from class net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendProperties(StateManager.Builder<Block, BlockState> builder) protected voiddispense(ServerWorld world, BlockPos pos, BlockState blockState) static PositiongetOutputLocation(BlockPointer pointer) getRenderType(BlockState state) protected Vec3dmethod_42874(BlockState blockState) mirror(BlockState state, BlockMirror mirror) voidneighborUpdate(BlockState state, World world, BlockPos pos, Block block, BlockPos fromPos, boolean notify) static voidregisterBehavior(ItemConvertible provider, DispenserBehavior behavior) rotate(BlockState state, BlockRotation rotation) Applies a block rotation to a block state.voidscheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Methods inherited from class net.minecraft.block.Block
afterBreak, appendStacks, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropStack, dropStack, dropStacks, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getRawIdFromState, getRegistryEntry, getShapesForStates, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getStateWithProperties, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasRandomTicks, hasTopRim, isFaceFullSquare, isShapeFullCube, isTranslucent, method_42872, 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.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canPlaceAt, canReplace, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getHardness, getLootTableId, getMaxHorizontalModelOffset, getOffsetType, getOpacity, getOutlineShape, getPistonBehavior, getRaycastShape, getRenderingSeed, getSidesShape, getStateForNeighborUpdate, getStrongRedstonePower, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasComparatorOutput, hasSidedTransparency, isShapeFullCube, isSideInvisible, onBlockAdded, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, prepare, randomTick
-
Field Details
-
FACING
- Mappings:
Namespace Name Mixin selector official aLcfo;a:Lcqa;intermediary field_10918Lnet/minecraft/class_2315;field_10918:Lnet/minecraft/class_2753;named FACINGLnet/minecraft/block/DispenserBlock;FACING:Lnet/minecraft/state/property/DirectionProperty;
-
TRIGGERED
- Mappings:
Namespace Name Mixin selector official bLcfo;b:Lcpx;intermediary field_10920Lnet/minecraft/class_2315;field_10920:Lnet/minecraft/class_2746;named TRIGGEREDLnet/minecraft/block/DispenserBlock;TRIGGERED:Lnet/minecraft/state/property/BooleanProperty;
-
BEHAVIORS
- Mappings:
Namespace Name Mixin selector official cLcfo;c:Ljava/util/Map;intermediary field_10919Lnet/minecraft/class_2315;field_10919:Ljava/util/Map;named BEHAVIORSLnet/minecraft/block/DispenserBlock;BEHAVIORS:Ljava/util/Map;
-
SCHEDULED_TICK_DELAY
private static final int SCHEDULED_TICK_DELAY- See Also:
- Mappings:
Namespace Name Mixin selector official dLcfo;d:Iintermediary field_31082Lnet/minecraft/class_2315;field_31082:Inamed SCHEDULED_TICK_DELAYLnet/minecraft/block/DispenserBlock;SCHEDULED_TICK_DELAY:I
-
-
Constructor Details
-
DispenserBlock
- Mappings:
Namespace Name Mixin selector official <init>Lcpf;<init>(Lcpf$c;)Vintermediary <init>Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)Vnamed <init>Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)V
-
-
Method Details
-
registerBehavior
- Mappings:
Namespace Name Mixin selector official aLcfo;a(Lcax;Lhp;)Vintermediary method_10009Lnet/minecraft/class_2315;method_10009(Lnet/minecraft/class_1935;Lnet/minecraft/class_2357;)Vnamed registerBehaviorLnet/minecraft/block/DispenserBlock;registerBehavior(Lnet/minecraft/item/ItemConvertible;Lnet/minecraft/block/dispenser/DispenserBehavior;)V
-
method_42874
- Mappings:
Namespace Name Mixin selector official hLcfo;h(Lcpg;)Ldpz;intermediary method_42874Lnet/minecraft/class_2315;method_42874(Lnet/minecraft/class_2680;)Lnet/minecraft/class_243;named method_42874Lnet/minecraft/block/DispenserBlock;method_42874(Lnet/minecraft/block/BlockState;)Lnet/minecraft/util/math/Vec3d;
-
dispense
- Mappings:
Namespace Name Mixin selector official aLcfo;a(Ladz;Lgk;Lcpg;)Vintermediary method_10012Lnet/minecraft/class_2315;method_10012(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Vnamed dispenseLnet/minecraft/block/DispenserBlock;dispense(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
-
neighborUpdate
public void neighborUpdate(BlockState state, World world, BlockPos pos, Block block, BlockPos fromPos, boolean notify) - Overrides:
neighborUpdatein classAbstractBlock- Mappings:
Namespace Name Mixin selector official aLcpf;a(Lcpg;Lcay;Lgk;Lcdt;Lgk;Z)Vintermediary method_9612Lnet/minecraft/class_4970;method_9612(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2248;Lnet/minecraft/class_2338;Z)Vnamed neighborUpdateLnet/minecraft/block/AbstractBlock;neighborUpdate(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/Block;Lnet/minecraft/util/math/BlockPos;Z)V
-
scheduledTick
- Overrides:
scheduledTickin classAbstractBlock- Mappings:
Namespace Name Mixin selector official aLcpf;a(Lcpg;Ladz;Lgk;Ljava/util/Random;)Vintermediary method_9588Lnet/minecraft/class_4970;method_9588(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Ljava/util/Random;)Vnamed scheduledTickLnet/minecraft/block/AbstractBlock;scheduledTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)V
-
getPlacementState
- Overrides:
getPlacementStatein classBlock- Mappings:
Namespace Name Mixin selector official aLcdt;a(Lbwx;)Lcpg;intermediary method_9605Lnet/minecraft/class_2248;method_9605(Lnet/minecraft/class_1750;)Lnet/minecraft/class_2680;named getPlacementStateLnet/minecraft/block/Block;getPlacementState(Lnet/minecraft/item/ItemPlacementContext;)Lnet/minecraft/block/BlockState;
-
getOutputLocation
- Mappings:
Namespace Name Mixin selector official aLcfo;a(Lgl;)Lgz;intermediary method_10010Lnet/minecraft/class_2315;method_10010(Lnet/minecraft/class_2342;)Lnet/minecraft/class_2374;named getOutputLocationLnet/minecraft/block/DispenserBlock;getOutputLocation(Lnet/minecraft/util/math/BlockPointer;)Lnet/minecraft/util/math/Position;
-
getRenderType
- Overrides:
getRenderTypein classAbstractBlock- Mappings:
Namespace Name Mixin selector official b_Lcpf;b_(Lcpg;)Lcjk;intermediary method_9604Lnet/minecraft/class_4970;method_9604(Lnet/minecraft/class_2680;)Lnet/minecraft/class_2464;named getRenderTypeLnet/minecraft/block/AbstractBlock;getRenderType(Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/BlockRenderType;
-
rotate
Applies a block rotation to a block state.By default, this returns the provided block state.
- Overrides:
rotatein classAbstractBlock- Returns:
- the rotated block state
- Mappings:
Namespace Name Mixin selector official aLcpf;a(Lcpg;Lcjr;)Lcpg;intermediary method_9598Lnet/minecraft/class_4970;method_9598(Lnet/minecraft/class_2680;Lnet/minecraft/class_2470;)Lnet/minecraft/class_2680;named rotateLnet/minecraft/block/AbstractBlock;rotate(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockRotation;)Lnet/minecraft/block/BlockState;
-
mirror
- Overrides:
mirrorin classAbstractBlock- Mappings:
Namespace Name Mixin selector official aLcpf;a(Lcpg;Lcie;)Lcpg;intermediary method_9569Lnet/minecraft/class_4970;method_9569(Lnet/minecraft/class_2680;Lnet/minecraft/class_2415;)Lnet/minecraft/class_2680;named mirrorLnet/minecraft/block/AbstractBlock;mirror(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockMirror;)Lnet/minecraft/block/BlockState;
-
appendProperties
- Overrides:
appendPropertiesin classBlock- Mappings:
Namespace Name Mixin selector official aLcdt;a(Lcph$a;)Vintermediary method_9515Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)Vnamed appendPropertiesLnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V
-