Class LecternBlock
- All Implemented Interfaces:
- BlockEntityProvider,- ItemConvertible,- ToggleableFeature
- Mappings:
- Namespace - Name - named - net/minecraft/block/LecternBlock- intermediary - net/minecraft/class_3715- official - dsf
- 
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 VoxelShapestatic final com.mojang.serialization.MapCodec<LecternBlock> static final EnumProperty<Direction> static final BooleanPropertyprivate static final Map<Direction, VoxelShape> static final BooleanPropertyprivate static final intFields inherited from class net.minecraft.block.Blockfield_31023, field_31024, field_31025, FORCE_STATE, FORCE_STATE_AND_SKIP_CALLBACKS_AND_DROPS, MOVED, NO_REDRAW, NOTIFY_ALL, NOTIFY_ALL_AND_REDRAW, NOTIFY_LISTENERS, NOTIFY_NEIGHBORS, REDRAW_ON_MAIN_THREAD, SKIP_BLOCK_ADDED_CALLBACK, SKIP_BLOCK_ENTITY_REPLACED_CALLBACK, SKIP_DROPS, SKIP_REDRAW_AND_BLOCK_ENTITY_REPLACED_CALLBACK, 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 TypeMethodDescriptionprotected voidappendProperties(StateManager.Builder<Block, BlockState> builder) Appends block state properties to this block.protected booleancanPathfindThrough(BlockState state, NavigationType type) Returns if an entity using navigation typetypecan navigate through this block.createBlockEntity(BlockPos pos, BlockState state) Returns a new block entity instance.protected @Nullable NamedScreenHandlerFactorycreateScreenHandlerFactory(BlockState state, World world, BlockPos pos) Returns the screen handler factory ornullif screen handler cannot be created.protected booleanemitsRedstonePower(BlockState state) Returns whether the block is capable of emitting redstone power.com.mojang.serialization.MapCodec<LecternBlock> getCodec()protected VoxelShapegetCollisionShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) protected intgetComparatorOutput(BlockState state, World world, BlockPos pos) Returns the comparator output of the block, from0to15.protected VoxelShapegetCullingShape(BlockState state) protected VoxelShapegetOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) protected intgetStrongRedstonePower(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the strong redstone power emitted from the block.protected intgetWeakRedstonePower(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the weak redstone power emitted from the block.protected booleanhasComparatorOutput(BlockState state) Returns whether the block can have a comparator output.protected booleanhasSidedTransparency(BlockState state) Returns whether the block's transparency depends on the side of the block, like slabs.protected BlockStatemirror(BlockState state, BlockMirror mirror) Returnsstatemirrored bymirror.protected voidonStateReplaced(BlockState state, ServerWorld world, BlockPos pos, boolean moved) protected ActionResultonUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultonUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) private voidopenScreen(World world, BlockPos pos, PlayerEntity player) private static voidputBook(@Nullable LivingEntity user, World world, BlockPos pos, BlockState state, ItemStack stack) static booleanputBookIfAbsent(@Nullable LivingEntity user, World world, BlockPos pos, BlockState state, ItemStack stack) protected BlockStaterotate(BlockState state, BlockRotation rotation) Returnsstaterotated byrotation.protected voidscheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random) Called server-side when a block receives a scheduled tick.static voidsetHasBook(@Nullable Entity user, World world, BlockPos pos, BlockState state, boolean hasBook) static voidsetPowered(World world, BlockPos pos, BlockState state) private static voidsetPowered(World world, BlockPos pos, BlockState state, boolean powered) private static voidupdateNeighborAlways(World world, BlockPos pos, BlockState state) Methods inherited from class net.minecraft.block.BlockWithEntityonSyncedBlockEvent, validateTickerMethods inherited from class net.minecraft.block.BlockafterBreak, asBlock, asItem, canMobSpawnInside, cannotConnect, createColumnShape, createColumnShape, createCubeShape, createCuboidShape, createCuboidShape, createCuboidZShape, createCuboidZShape, createCuboidZShape, createShapeArray, createShapeFunction, createShapeFunction, dropExperience, dropExperienceWhenMined, dropStack, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getRawIdFromState, getRegistryEntry, 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, canPlaceAt, canReplace, createCodec, createSettingsCodec, getAmbientOcclusionLightLevel, getCameraCollisionShape, getDefaultMapColor, getDroppedStacks, getFluidState, getHardness, getInsideCollisionShape, getLootTableKey, getMaxHorizontalModelOffset, getOpacity, getPickStack, getRaycastShape, getRenderingSeed, getRenderType, getRequiredFeatures, getSettings, getSidesShape, getSoundGroup, getStateForNeighborUpdate, getTranslationKey, getVerticalModelOffsetMultiplier, hasRandomTicks, isShapeFullCube, isSideInvisible, isTransparent, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onExploded, onProjectileHit, onStacksDropped, 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- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/block/LecternBlock;CODEC:Lcom/mojang/serialization/MapCodec;- intermediary - field_46386- Lnet/minecraft/class_3715;field_46386:Lcom/mojang/serialization/MapCodec;- official - a- Ldsf;a:Lcom/mojang/serialization/MapCodec;
 
- 
FACING- Mappings:
- Namespace - Name - Mixin selector - named - FACING- Lnet/minecraft/block/LecternBlock;FACING:Lnet/minecraft/state/property/EnumProperty;- intermediary - field_16404- Lnet/minecraft/class_3715;field_16404:Lnet/minecraft/class_2754;- official - b- Ldsf;b:Leco;
 
- 
POWERED- Mappings:
- Namespace - Name - Mixin selector - named - POWERED- Lnet/minecraft/block/LecternBlock;POWERED:Lnet/minecraft/state/property/BooleanProperty;- intermediary - field_17365- Lnet/minecraft/class_3715;field_17365:Lnet/minecraft/class_2746;- official - c- Ldsf;c:Lech;
 
- 
HAS_BOOK- Mappings:
- Namespace - Name - Mixin selector - named - HAS_BOOK- Lnet/minecraft/block/LecternBlock;HAS_BOOK:Lnet/minecraft/state/property/BooleanProperty;- intermediary - field_17366- Lnet/minecraft/class_3715;field_17366:Lnet/minecraft/class_2746;- official - d- Ldsf;d:Lech;
 
- 
BASE_SHAPE- Mappings:
- Namespace - Name - Mixin selector - named - BASE_SHAPE- Lnet/minecraft/block/LecternBlock;BASE_SHAPE:Lnet/minecraft/util/shape/VoxelShape;- intermediary - field_55774- Lnet/minecraft/class_3715;field_55774:Lnet/minecraft/class_265;- official - e- Ldsf;e:Lfgw;
 
- 
OUTLINE_SHAPES_BY_DIRECTION- Mappings:
- Namespace - Name - Mixin selector - named - OUTLINE_SHAPES_BY_DIRECTION- Lnet/minecraft/block/LecternBlock;OUTLINE_SHAPES_BY_DIRECTION:Ljava/util/Map;- intermediary - field_55775- Lnet/minecraft/class_3715;field_55775:Ljava/util/Map;- official - f- Ldsf;f:Ljava/util/Map;
 
- 
SCHEDULED_TICK_DELAYprivate static final int SCHEDULED_TICK_DELAY- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - SCHEDULED_TICK_DELAY- Lnet/minecraft/block/LecternBlock;SCHEDULED_TICK_DELAY:I- intermediary - field_31113- Lnet/minecraft/class_3715;field_31113:I- official - g- Ldsf;g:I
 
 
- 
- 
Constructor Details- 
LecternBlock- 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>- Lebp;<init>(Lebp$d;)V
 
 
- 
- 
Method Details- 
getCodec- Specified by:
- getCodecin class- BlockWithEntity
- 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- Lebp;a()Lcom/mojang/serialization/MapCodec;
 
- 
getCullingShape- Overrides:
- getCullingShapein class- AbstractBlock
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - getCullingShape- Lnet/minecraft/block/AbstractBlock;getCullingShape(Lnet/minecraft/block/BlockState;)Lnet/minecraft/util/shape/VoxelShape;- intermediary - method_9571- Lnet/minecraft/class_4970;method_9571(Lnet/minecraft/class_2680;)Lnet/minecraft/class_265;- official - d_- Lebp;d_(Lebq;)Lfgw;
 
- 
hasSidedTransparencyReturns whether the block's transparency depends on the side of the block, like slabs.- Overrides:
- hasSidedTransparencyin class- AbstractBlock
- Returns:
- whether the block's transparency depends on the side of the block, like slabs
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - hasSidedTransparency- Lnet/minecraft/block/AbstractBlock;hasSidedTransparency(Lnet/minecraft/block/BlockState;)Z- intermediary - method_9526- Lnet/minecraft/class_4970;method_9526(Lnet/minecraft/class_2680;)Z- official - g_- Lebp;g_(Lebq;)Z
 
- 
getPlacementState- Overrides:
- getPlacementStatein class- Block
- Mappings:
- Namespace - Name - Mixin selector - named - getPlacementState- Lnet/minecraft/block/Block;getPlacementState(Lnet/minecraft/item/ItemPlacementContext;)Lnet/minecraft/block/BlockState;- intermediary - method_9605- Lnet/minecraft/class_2248;method_9605(Lnet/minecraft/class_1750;)Lnet/minecraft/class_2680;- official - a- Ldno;a(Lded;)Lebq;
 
- 
getCollisionShapeprotected VoxelShape getCollisionShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) - Overrides:
- getCollisionShapein class- AbstractBlock
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - getCollisionShape- Lnet/minecraft/block/AbstractBlock;getCollisionShape(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/ShapeContext;)Lnet/minecraft/util/shape/VoxelShape;- intermediary - method_9549- Lnet/minecraft/class_4970;method_9549(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_3726;)Lnet/minecraft/class_265;- official - b- Lebp;b(Lebq;Ldjn;Liw;Lfgh;)Lfgw;
 
- 
getOutlineShapeprotected VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) - Overrides:
- getOutlineShapein class- AbstractBlock
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - getOutlineShape- Lnet/minecraft/block/AbstractBlock;getOutlineShape(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/ShapeContext;)Lnet/minecraft/util/shape/VoxelShape;- intermediary - method_9530- Lnet/minecraft/class_4970;method_9530(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_3726;)Lnet/minecraft/class_265;- official - a- Lebp;a(Lebq;Ldjn;Liw;Lfgh;)Lfgw;
 
- 
rotateReturnsstaterotated byrotation.By default, this returns the provided block state. - Overrides:
- rotatein class- AbstractBlock
- Returns:
- staterotated by- rotation
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - rotate- Lnet/minecraft/block/AbstractBlock;rotate(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockRotation;)Lnet/minecraft/block/BlockState;- intermediary - method_9598- Lnet/minecraft/class_4970;method_9598(Lnet/minecraft/class_2680;Lnet/minecraft/class_2470;)Lnet/minecraft/class_2680;- official - a- Lebp;a(Lebq;Ldui;)Lebq;
 
- 
mirrorReturnsstatemirrored bymirror.By default, this returns the provided block state. - Overrides:
- mirrorin class- AbstractBlock
- Returns:
- statemirrored by- mirror
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - mirror- Lnet/minecraft/block/AbstractBlock;mirror(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/BlockMirror;)Lnet/minecraft/block/BlockState;- intermediary - method_9569- Lnet/minecraft/class_4970;method_9569(Lnet/minecraft/class_2680;Lnet/minecraft/class_2415;)Lnet/minecraft/class_2680;- official - a- Lebp;a(Lebq;Ldsr;)Lebq;
 
- 
appendPropertiesAppends block state properties to this block. To use this, override and callStateManager.Builder.add(net.minecraft.state.property.Property<?>[])inside the method. SeePropertiesfor the list of pre-defined properties.- Overrides:
- appendPropertiesin class- Block
- Mappings:
- Namespace - Name - Mixin selector - named - appendProperties- Lnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V- intermediary - method_9515- Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)V- official - a- Ldno;a(Lebr$a;)V
 
- 
createBlockEntityReturns a new block entity instance.For example: @Override public BlockEntity createBlockEntity(BlockPos pos, BlockState state) { return new MyBlockEntity(pos, state); }- 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- Ldqi;a(Liw;Lebq;)Ldyo;
 
- 
putBookIfAbsentpublic static boolean putBookIfAbsent(@Nullable @Nullable LivingEntity user, World world, BlockPos pos, BlockState state, ItemStack stack) - Mappings:
- Namespace - Name - Mixin selector - named - putBookIfAbsent- Lnet/minecraft/block/LecternBlock;putBookIfAbsent(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/item/ItemStack;)Z- intermediary - method_17472- Lnet/minecraft/class_3715;method_17472(Lnet/minecraft/class_1309;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_1799;)Z- official - a- Ldsf;a(Lbyf;Ldkj;Liw;Lebq;Ldak;)Z
 
- 
putBookprivate static void putBook(@Nullable @Nullable LivingEntity user, World world, BlockPos pos, BlockState state, ItemStack stack) - Mappings:
- Namespace - Name - Mixin selector - named - putBook- Lnet/minecraft/block/LecternBlock;putBook(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/item/ItemStack;)V- intermediary - method_17475- Lnet/minecraft/class_3715;method_17475(Lnet/minecraft/class_1309;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_1799;)V- official - b- Ldsf;b(Lbyf;Ldkj;Liw;Lebq;Ldak;)V
 
- 
setHasBookpublic static void setHasBook(@Nullable @Nullable Entity user, World world, BlockPos pos, BlockState state, boolean hasBook) - Mappings:
- Namespace - Name - Mixin selector - named - setHasBook- Lnet/minecraft/block/LecternBlock;setHasBook(Lnet/minecraft/entity/Entity;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Z)V- intermediary - method_17473- Lnet/minecraft/class_3715;method_17473(Lnet/minecraft/class_1297;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Z)V- official - a- Ldsf;a(Lbxe;Ldkj;Liw;Lebq;Z)V
 
- 
setPowered- Mappings:
- Namespace - Name - Mixin selector - named - setPowered- Lnet/minecraft/block/LecternBlock;setPowered(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V- intermediary - method_17471- Lnet/minecraft/class_3715;method_17471(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V- official - a- Ldsf;a(Ldkj;Liw;Lebq;)V
 
- 
setPowered- Mappings:
- Namespace - Name - Mixin selector - named - setPowered- Lnet/minecraft/block/LecternBlock;setPowered(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Z)V- intermediary - method_17476- Lnet/minecraft/class_3715;method_17476(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Z)V- official - a- Ldsf;a(Ldkj;Liw;Lebq;Z)V
 
- 
updateNeighborAlways- Mappings:
- Namespace - Name - Mixin selector - named - updateNeighborAlways- Lnet/minecraft/block/LecternBlock;updateNeighborAlways(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V- intermediary - method_17474- Lnet/minecraft/class_3715;method_17474(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V- official - b- Ldsf;b(Ldkj;Liw;Lebq;)V
 
- 
scheduledTickCalled server-side when a block receives a scheduled tick. This can be used like a timer. Scheduled ticks are added usingScheduledTickView.scheduleBlockTick(BlockPos, Block, int).Scheduled ticks are often used inside AbstractBlock.getStateForNeighborUpdate(net.minecraft.block.BlockState, net.minecraft.world.WorldView, net.minecraft.world.tick.ScheduledTickView, net.minecraft.util.math.BlockPos, net.minecraft.util.math.Direction, net.minecraft.util.math.BlockPos, net.minecraft.block.BlockState, net.minecraft.util.math.random.Random).Here are some examples: - SugarCaneBlockchecks the placement requirement.
- DispenserBlockdispenses its content.
- CommandBlockexecutes its command.
- FrogspawnBlockspawns a tadpole.
- SoulSandBlockupdates a bubble column.
- FallingBlocktries to fall.
 - Overrides:
- scheduledTickin class- AbstractBlock
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - scheduledTick- Lnet/minecraft/block/AbstractBlock;scheduledTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)V- intermediary - method_9588- Lnet/minecraft/class_4970;method_9588(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)V- official - a- Lebp;a(Lebq;Lasb;Liw;Lbai;)V
 
- 
onStateReplaced- Overrides:
- onStateReplacedin class- AbstractBlock
- Mappings:
- Namespace - Name - Mixin selector - named - onStateReplaced- Lnet/minecraft/block/AbstractBlock;onStateReplaced(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Z)V- intermediary - method_66388- Lnet/minecraft/class_4970;method_66388(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Z)V- official - a- Lebp;a(Lebq;Lasb;Liw;Z)V
 
- 
emitsRedstonePowerReturns whether the block is capable of emitting redstone power.This does not return whether the block is currently emitting redstone power. Use RedstoneView.isEmittingRedstonePower(net.minecraft.util.math.BlockPos, net.minecraft.util.math.Direction)in that case.- Overrides:
- emitsRedstonePowerin class- AbstractBlock
- Returns:
- whether the block is capable of emitting redstone power
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - emitsRedstonePower- Lnet/minecraft/block/AbstractBlock;emitsRedstonePower(Lnet/minecraft/block/BlockState;)Z- intermediary - method_9506- Lnet/minecraft/class_4970;method_9506(Lnet/minecraft/class_2680;)Z- official - f_- Lebp;f_(Lebq;)Z
 
- 
getWeakRedstonePowerprotected int getWeakRedstonePower(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the weak redstone power emitted from the block.When overriding this, make sure to also override emitsRedstonePower(net.minecraft.block.BlockState)to returntrue.Weak redstone power is a power that cannot power a redstone wire when a solid block is in between. For example, RedstoneBlockandTargetBlockemits weak redstone power only.LeverBlockandButtonBlockemits both weak and strong redstone power depending on the direction.- Overrides:
- getWeakRedstonePowerin class- AbstractBlock
- Returns:
- the weak redstone power emitted from the block
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - getWeakRedstonePower- Lnet/minecraft/block/AbstractBlock;getWeakRedstonePower(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)I- intermediary - method_9524- Lnet/minecraft/class_4970;method_9524(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)I- official - a- Lebp;a(Lebq;Ldjn;Liw;Ljc;)I
 
- 
getStrongRedstonePowerprotected int getStrongRedstonePower(BlockState state, BlockView world, BlockPos pos, Direction direction) Returns the strong redstone power emitted from the block.When overriding this, make sure to also override emitsRedstonePower(net.minecraft.block.BlockState)to returntrue.getWeakRedstonePower(net.minecraft.block.BlockState, net.minecraft.world.BlockView, net.minecraft.util.math.BlockPos, net.minecraft.util.math.Direction)might also need to be overridden.Strong redstone power is a power that can power a redstone wire when a solid block is in between. For example, RedstoneBlockandTargetBlockemits weak redstone power only.LeverBlockandButtonBlockemits both weak and strong redstone power.- Overrides:
- getStrongRedstonePowerin class- AbstractBlock
- Returns:
- the strong redstone power emitted from the block
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - getStrongRedstonePower- Lnet/minecraft/block/AbstractBlock;getStrongRedstonePower(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)I- intermediary - method_9603- Lnet/minecraft/class_4970;method_9603(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)I- official - b- Lebp;b(Lebq;Ldjn;Liw;Ljc;)I
 
- 
hasComparatorOutputReturns whether the block can have a comparator output.This does not check the current comparator output of the block. Use getComparatorOutput(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos)in that case.- Overrides:
- hasComparatorOutputin class- AbstractBlock
- Returns:
- whether the block can have a comparator output
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - hasComparatorOutput- Lnet/minecraft/block/AbstractBlock;hasComparatorOutput(Lnet/minecraft/block/BlockState;)Z- intermediary - method_9498- Lnet/minecraft/class_4970;method_9498(Lnet/minecraft/class_2680;)Z- official - c_- Lebp;c_(Lebq;)Z
 
- 
getComparatorOutputReturns the comparator output of the block, from0to15.When overriding this, hasComparatorOutput(net.minecraft.block.BlockState)must also be overridden.- Overrides:
- getComparatorOutputin class- AbstractBlock
- Returns:
- the comparator output of the block, from 0to15
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - getComparatorOutput- Lnet/minecraft/block/AbstractBlock;getComparatorOutput(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)I- intermediary - method_9572- Lnet/minecraft/class_4970;method_9572(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)I- official - a- Lebp;a(Lebq;Ldkj;Liw;)I
 
- 
onUseWithItemprotected ActionResult onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) - Overrides:
- onUseWithItemin class- AbstractBlock
- Mappings:
- Namespace - Name - Mixin selector - named - onUseWithItem- Lnet/minecraft/block/AbstractBlock;onUseWithItem(Lnet/minecraft/item/ItemStack;Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;Lnet/minecraft/util/hit/BlockHitResult;)Lnet/minecraft/util/ActionResult;- intermediary - method_55765- Lnet/minecraft/class_4970;method_55765(Lnet/minecraft/class_1799;Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;Lnet/minecraft/class_3965;)Lnet/minecraft/class_1269;- official - a- Lebp;a(Ldak;Lebq;Ldkj;Liw;Lcsi;Lbvb;Lffy;)Lbvc;
 
- 
onUseprotected ActionResult onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) - Overrides:
- onUsein class- AbstractBlock
- Mappings:
- Namespace - Name - Mixin selector - named - onUse- Lnet/minecraft/block/AbstractBlock;onUse(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/hit/BlockHitResult;)Lnet/minecraft/util/ActionResult;- intermediary - method_55766- Lnet/minecraft/class_4970;method_55766(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;Lnet/minecraft/class_3965;)Lnet/minecraft/class_1269;- official - a- Lebp;a(Lebq;Ldkj;Liw;Lcsi;Lffy;)Lbvc;
 
- 
createScreenHandlerFactory@Nullable protected @Nullable NamedScreenHandlerFactory createScreenHandlerFactory(BlockState state, World world, BlockPos pos) Returns the screen handler factory ornullif screen handler cannot be created.This method should be overridden for blocks with screen handlers, such as anvils. The created screen handler is usually passed to PlayerEntity.openHandledScreen(net.minecraft.screen.NamedScreenHandlerFactory). SeeAnvilBlock.createScreenHandlerFactory(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos)for basic usage.BlockWithEntitydelegates this logic to the block entity implementingNamedScreenHandlerFactory. For example, anyBlockWithEntitywhose block entity extendsLockableContainerBlockEntityneeds to overrideLockableContainerBlockEntity.createScreenHandler(int, net.minecraft.entity.player.PlayerInventory)instead of this method.This method is called on both the logical client and logical server, so take caution when overriding this method. The logical side can be checked using World.isClient.- Overrides:
- createScreenHandlerFactoryin class- BlockWithEntity
- Returns:
- the screen handler factory or nullif screen handler cannot be created
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - createScreenHandlerFactory- Lnet/minecraft/block/AbstractBlock;createScreenHandlerFactory(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/screen/NamedScreenHandlerFactory;- intermediary - method_17454- Lnet/minecraft/class_4970;method_17454(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Lnet/minecraft/class_3908;- official - b- Lebp;b(Lebq;Ldkj;Liw;)Lbve;
 
- 
openScreen- Mappings:
- Namespace - Name - Mixin selector - named - openScreen- Lnet/minecraft/block/LecternBlock;openScreen(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/player/PlayerEntity;)V- intermediary - method_17470- Lnet/minecraft/class_3715;method_17470(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;)V- official - a- Ldsf;a(Ldkj;Liw;Lcsi;)V
 
 
-