Class ShulkerBoxBlock
- All Implemented Interfaces:
BlockEntityProvider
,ItemConvertible
,ToggleableFeature
- Mappings:
Namespace Name named net/minecraft/block/ShulkerBoxBlock
intermediary net/minecraft/class_2480
official drn
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.Offsetter, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<ShulkerBoxBlock> static final Identifier
private static final VoxelShape
private static final VoxelShape
static final EnumProperty
<Direction> private static final float
private static final VoxelShape
private static final Map
<Direction, VoxelShape> private static final VoxelShape
private static final Text
private static final VoxelShape
private static final VoxelShape
Fields inherited from class net.minecraft.block.Block
field_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, stateManager
Fields inherited from class net.minecraft.block.AbstractBlock
collidable, DIRECTIONS, dynamicBounds, jumpVelocityMultiplier, lootTableKey, randomTicks, requiredFeatures, resistance, settings, slipperiness, soundGroup, translationKey, velocityMultiplier
Fields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
FEATURE_ENABLED_REGISTRY_KEYS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
appendProperties
(StateManager.Builder<Block, BlockState> builder) Appends block state properties to this block.void
appendTooltip
(ItemStack stack, Item.TooltipContext context, List<Text> tooltip, TooltipType options) Appends tooltips to a stack of this block's corresponding block item.private static boolean
canOpen
(BlockState state, World world, BlockPos pos, ShulkerBoxBlockEntity entity) createBlockEntity
(BlockPos pos, BlockState state) Returns a new block entity instance.static Block
com.mojang.serialization.MapCodec
<ShulkerBoxBlock> getCodec()
getColor()
protected int
getComparatorOutput
(BlockState state, World world, BlockPos pos) Returns the comparator output of the block, from0
to15
.getDroppedStacks
(BlockState state, LootWorldContext.Builder builder) Returns the block's dropped item stacks.static ItemStack
getItemStack
(@Nullable DyeColor color) protected VoxelShape
getOutlineShape
(BlockState state, BlockView world, BlockPos pos, ShapeContext context) getPickStack
(WorldView world, BlockPos pos, BlockState state) Returns the new item stack when using pick block functionality.protected BlockRenderType
getRenderType
(BlockState state) Returns the block's render type (invisible, animated, model).protected VoxelShape
getSidesShape
(BlockState state, BlockView world, BlockPos pos) <T extends BlockEntity>
@Nullable BlockEntityTicker<T> getTicker
(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.protected boolean
hasComparatorOutput
(BlockState state) Returns whether the block can have a comparator output.protected boolean
isTransparent
(BlockState state) protected BlockState
mirror
(BlockState state, BlockMirror mirror) Returnsstate
mirrored bymirror
.onBreak
(World world, BlockPos pos, BlockState state, PlayerEntity player) Called when a player breaks a block before the block is removed from the world.protected void
onStateReplaced
(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved) Called server-side on the old block when the block state is changed.protected ActionResult
onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected BlockState
rotate
(BlockState state, BlockRotation rotation) Returnsstate
rotated byrotation
.Methods inherited from class net.minecraft.block.BlockWithEntity
createScreenHandlerFactory, onSyncedBlockEvent, validateTicker
Methods inherited from class net.minecraft.block.Block
afterBreak, 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, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, spawnBreakParticles, toString
Methods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canPlaceAt, canReplace, createCodec, createSettingsCodec, emitsRedstonePower, getAmbientOcclusionLightLevel, getCameraCollisionShape, getCollisionShape, getCullingShape, getDefaultMapColor, getFluidState, getHardness, getInsideCollisionShape, getLootTableKey, getMaxHorizontalModelOffset, getOpacity, getRaycastShape, getRenderingSeed, getRequiredFeatures, getSettings, getSoundGroup, getStateForNeighborUpdate, getStrongRedstonePower, getTranslationKey, getVerticalModelOffsetMultiplier, getWeakRedstonePower, hasRandomTicks, hasSidedTransparency, isShapeFullCube, isSideInvisible, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onExploded, onProjectileHit, onStacksDropped, onUseWithItem, prepare, randomTick, scheduledTick
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.block.BlockEntityProvider
getGameEventListener
Methods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
isEnabled
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/block/ShulkerBoxBlock;CODEC:Lcom/mojang/serialization/MapCodec;
intermediary field_46440
Lnet/minecraft/class_2480;field_46440:Lcom/mojang/serialization/MapCodec;
official a
Ldrn;a:Lcom/mojang/serialization/MapCodec;
-
UNKNOWN_CONTENTS_TEXT
- Mappings:
Namespace Name Mixin selector named UNKNOWN_CONTENTS_TEXT
Lnet/minecraft/block/ShulkerBoxBlock;UNKNOWN_CONTENTS_TEXT:Lnet/minecraft/text/Text;
intermediary field_49401
Lnet/minecraft/class_2480;field_49401:Lnet/minecraft/class_2561;
official d
Ldrn;d:Lxv;
-
field_41075
private static final float field_41075- See Also:
- Mappings:
Namespace Name Mixin selector named field_41075
Lnet/minecraft/block/ShulkerBoxBlock;field_41075:F
intermediary field_41075
Lnet/minecraft/class_2480;field_41075:F
official e
Ldrn;e:F
-
UP_SHAPE
- Mappings:
Namespace Name Mixin selector named UP_SHAPE
Lnet/minecraft/block/ShulkerBoxBlock;UP_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
intermediary field_41076
Lnet/minecraft/class_2480;field_41076:Lnet/minecraft/class_265;
official f
Ldrn;f:Lfcr;
-
DOWN_SHAPE
- Mappings:
Namespace Name Mixin selector named DOWN_SHAPE
Lnet/minecraft/block/ShulkerBoxBlock;DOWN_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
intermediary field_41077
Lnet/minecraft/class_2480;field_41077:Lnet/minecraft/class_265;
official g
Ldrn;g:Lfcr;
-
WEST_SHAPE
- Mappings:
Namespace Name Mixin selector named WEST_SHAPE
Lnet/minecraft/block/ShulkerBoxBlock;WEST_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
intermediary field_41078
Lnet/minecraft/class_2480;field_41078:Lnet/minecraft/class_265;
official h
Ldrn;h:Lfcr;
-
EAST_SHAPE
- Mappings:
Namespace Name Mixin selector named EAST_SHAPE
Lnet/minecraft/block/ShulkerBoxBlock;EAST_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
intermediary field_41079
Lnet/minecraft/class_2480;field_41079:Lnet/minecraft/class_265;
official i
Ldrn;i:Lfcr;
-
NORTH_SHAPE
- Mappings:
Namespace Name Mixin selector named NORTH_SHAPE
Lnet/minecraft/block/ShulkerBoxBlock;NORTH_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
intermediary field_41080
Lnet/minecraft/class_2480;field_41080:Lnet/minecraft/class_265;
official j
Ldrn;j:Lfcr;
-
SOUTH_SHAPE
- Mappings:
Namespace Name Mixin selector named SOUTH_SHAPE
Lnet/minecraft/block/ShulkerBoxBlock;SOUTH_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
intermediary field_41081
Lnet/minecraft/class_2480;field_41081:Lnet/minecraft/class_265;
official k
Ldrn;k:Lfcr;
-
SIDES_SHAPES
- Mappings:
Namespace Name Mixin selector named SIDES_SHAPES
Lnet/minecraft/block/ShulkerBoxBlock;SIDES_SHAPES:Ljava/util/Map;
intermediary field_41082
Lnet/minecraft/class_2480;field_41082:Ljava/util/Map;
official l
Ldrn;l:Ljava/util/Map;
-
FACING
- Mappings:
Namespace Name Mixin selector named FACING
Lnet/minecraft/block/ShulkerBoxBlock;FACING:Lnet/minecraft/state/property/EnumProperty;
intermediary field_11496
Lnet/minecraft/class_2480;field_11496:Lnet/minecraft/class_2754;
official b
Ldrn;b:Ldyr;
-
CONTENTS_DYNAMIC_DROP_ID
- Mappings:
Namespace Name Mixin selector named CONTENTS_DYNAMIC_DROP_ID
Lnet/minecraft/block/ShulkerBoxBlock;CONTENTS_DYNAMIC_DROP_ID:Lnet/minecraft/util/Identifier;
intermediary field_11495
Lnet/minecraft/class_2480;field_11495:Lnet/minecraft/class_2960;
official c
Ldrn;c:Lalz;
-
color
- Mappings:
Namespace Name Mixin selector named color
Lnet/minecraft/block/ShulkerBoxBlock;color:Lnet/minecraft/util/DyeColor;
intermediary field_11494
Lnet/minecraft/class_2480;field_11494:Lnet/minecraft/class_1767;
official m
Ldrn;m:Lcwl;
-
-
Constructor Details
-
ShulkerBoxBlock
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/block/ShulkerBoxBlock;<init>(Lnet/minecraft/util/DyeColor;Lnet/minecraft/block/AbstractBlock$Settings;)V
intermediary <init>
Lnet/minecraft/class_2480;<init>(Lnet/minecraft/class_1767;Lnet/minecraft/class_4970$class_2251;)V
official <init>
Ldrn;<init>(Lcwl;Ldxt$d;)V
-
-
Method Details
-
getCodec
- Specified by:
getCodec
in classBlockWithEntity
- 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
Ldxt;a()Lcom/mojang/serialization/MapCodec;
-
createBlockEntity
Returns 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
.PistonExtensionBlock
is the only block in vanilla that returnsnull
inside 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
Ldnf;a(Ljh;Ldxu;)Lduw;
-
getTicker
@Nullable public <T extends BlockEntity> @Nullable BlockEntityTicker<T> getTicker(World world, BlockState state, BlockEntityType<T> type) Returns the "ticker" for the block's block entity, ornull
if the block entity does not need to be ticked.Ticker is a functional interface called every tick to tick the block entity on both the client and the server.
Tickers should validate that the passed
type
is the one this block expects, and returnnull
if it isn't. This is to prevent crashes in rare cases where a mismatch occurs between the position's block and block entity.BlockWithEntity.validateTicker(net.minecraft.block.entity.BlockEntityType<A>, net.minecraft.block.entity.BlockEntityType<E>, net.minecraft.block.entity.BlockEntityTicker<? super E>)
can be used to implement the check.Example:
public <T extends BlockEntity> BlockEntityTicker<T> getTicker(World world, BlockState state, BlockEntityType<T> type) { if (type != YourMod.MY_BLOCK_ENTITY_TYPE) return null; // This should be a static method usable as a BlockEntityTicker. return YourBlockEntity::tick; }
- Returns:
- the "ticker" for the block's block entity, or
null
if the block entity does not need to be ticked - Mappings:
Namespace Name Mixin selector named getTicker
Lnet/minecraft/block/BlockEntityProvider;getTicker(Lnet/minecraft/world/World;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/BlockEntityType;)Lnet/minecraft/block/entity/BlockEntityTicker;
intermediary method_31645
Lnet/minecraft/class_2343;method_31645(Lnet/minecraft/class_1937;Lnet/minecraft/class_2680;Lnet/minecraft/class_2591;)Lnet/minecraft/class_5558;
official a
Ldnf;a(Ldhh;Ldxu;Lduy;)Ldux;
-
getRenderType
Returns the block's render type (invisible, animated, model).- Overrides:
getRenderType
in classBlockWithEntity
- Returns:
- the block's render type (invisible, animated, model)
- See Also:
- API Note:
BlockWithEntity
overrides this to returnBlockRenderType.INVISIBLE
; therefore, custom blocks extending that class must override it again to render the block.- Mappings:
Namespace Name Mixin selector named getRenderType
Lnet/minecraft/block/AbstractBlock;getRenderType(Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/BlockRenderType;
intermediary method_9604
Lnet/minecraft/class_4970;method_9604(Lnet/minecraft/class_2680;)Lnet/minecraft/class_2464;
official a_
Ldxt;a_(Ldxu;)Ldqu;
-
onUse
protected ActionResult onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) - Overrides:
onUse
in classAbstractBlock
- 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
Ldxt;a(Ldxu;Ldhh;Ljh;Lcpw;Lfbt;)Lbti;
-
canOpen
private static boolean canOpen(BlockState state, World world, BlockPos pos, ShulkerBoxBlockEntity entity) - Mappings:
Namespace Name Mixin selector named canOpen
Lnet/minecraft/block/ShulkerBoxBlock;canOpen(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/entity/ShulkerBoxBlockEntity;)Z
intermediary method_33383
Lnet/minecraft/class_2480;method_33383(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2627;)Z
official a
Ldrn;a(Ldxu;Ldhh;Ljh;Ldwi;)Z
-
getPlacementState
- Overrides:
getPlacementState
in classBlock
- 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
Ldkl;a(Ldbf;)Ldxu;
-
appendProperties
Appends block state properties to this block. To use this, override and callStateManager.Builder.add(net.minecraft.state.property.Property<?>[])
inside the method. SeeProperties
for the list of pre-defined properties.- Overrides:
appendProperties
in classBlock
- 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
Ldkl;a(Ldxv$a;)V
-
onBreak
Called when a player breaks a block before the block is removed from the world. Explosions do not trigger this.Default implementation spawns block breaking particles, angers piglins, and emits game events. Tall or wide blocks such as doors or beds should override this to break the other part (along with
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)
.)In most cases,
AbstractBlock.onStateReplaced(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.block.BlockState, boolean)
orAbstractBlock.onStacksDropped(net.minecraft.block.BlockState, net.minecraft.server.world.ServerWorld, net.minecraft.util.math.BlockPos, net.minecraft.item.ItemStack, boolean)
should be used instead. Note that they are called when blocks are broken by explosions as well as players breaking them.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:
onBreak
in classBlock
- See Also:
- Mappings:
Namespace Name Mixin selector named onBreak
Lnet/minecraft/block/Block;onBreak(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/block/BlockState;
intermediary method_9576
Lnet/minecraft/class_2248;method_9576(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_1657;)Lnet/minecraft/class_2680;
official a
Ldkl;a(Ldhh;Ljh;Ldxu;Lcpw;)Ldxu;
-
getDroppedStacks
Returns the block's dropped item stacks.The default implementation uses loot tables. Blocks with custom drops should not hardcode the drops; instead, make a new loot table. If the loot table needs an additional context, override this method and modify
builder
before callingsuper.getDroppedStacks
. An example of this isShulkerBoxBlock
. Note that to prevent item duplication, when appending item stacks to the builder,ItemStack.split(int)
should be called.This method should not be used for dropping inventory contents (
onStateReplaced(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.block.BlockState, boolean)
should be used instead) or to drop experience orbs (AbstractBlock.onStacksDropped(net.minecraft.block.BlockState, net.minecraft.server.world.ServerWorld, net.minecraft.util.math.BlockPos, net.minecraft.item.ItemStack, boolean)
should be used instead).- Overrides:
getDroppedStacks
in classAbstractBlock
- Returns:
- the block's dropped item stacks
- See Also:
- Mappings:
Namespace Name Mixin selector named getDroppedStacks
Lnet/minecraft/block/AbstractBlock;getDroppedStacks(Lnet/minecraft/block/BlockState;Lnet/minecraft/loot/context/LootWorldContext$Builder;)Ljava/util/List;
intermediary method_9560
Lnet/minecraft/class_4970;method_9560(Lnet/minecraft/class_2680;Lnet/minecraft/class_8567$class_8568;)Ljava/util/List;
official a
Ldxt;a(Ldxu;Lewr$a;)Ljava/util/List;
-
onStateReplaced
protected void onStateReplaced(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved) Called server-side on the old block when the block state is changed. This includes block removal. This is used to update neighboring blocks when an active redstone power source is removed, or to drop the contents of an inventory. The checkstate.isOf(newState.getBlock())
can be used to see if the block was removed or not.For most block entities,
ItemScatterer.onStateReplaced(net.minecraft.block.BlockState, net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos)
provides a good implementation of this method. Make sure to callsuper.onStateReplaced(state, world, pos, newState, moved);
after invokingItemScatterer
methods.- Overrides:
onStateReplaced
in classAbstractBlock
- See Also:
- Mappings:
Namespace Name Mixin selector named onStateReplaced
Lnet/minecraft/block/AbstractBlock;onStateReplaced(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Z)V
intermediary method_9536
Lnet/minecraft/class_4970;method_9536(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Z)V
official a
Ldxt;a(Ldxu;Ldhh;Ljh;Ldxu;Z)V
-
appendTooltip
public void appendTooltip(ItemStack stack, Item.TooltipContext context, List<Text> tooltip, TooltipType options) Appends tooltips to a stack of this block's corresponding block item. Used by shulker boxes.- Overrides:
appendTooltip
in classBlock
- See Also:
- Mappings:
Namespace Name Mixin selector named appendTooltip
Lnet/minecraft/block/Block;appendTooltip(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/Item$TooltipContext;Ljava/util/List;Lnet/minecraft/item/tooltip/TooltipType;)V
intermediary method_9568
Lnet/minecraft/class_2248;method_9568(Lnet/minecraft/class_1799;Lnet/minecraft/class_1792$class_9635;Ljava/util/List;Lnet/minecraft/class_1836;)V
official a
Ldkl;a(Lcxo;Lcxk$b;Ljava/util/List;Lczg;)V
-
getSidesShape
- Overrides:
getSidesShape
in classAbstractBlock
- See Also:
- Mappings:
Namespace Name Mixin selector named getSidesShape
Lnet/minecraft/block/AbstractBlock;getSidesShape(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/shape/VoxelShape;
intermediary method_25959
Lnet/minecraft/class_4970;method_25959(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Lnet/minecraft/class_265;
official b_
Ldxt;b_(Ldxu;Ldgm;Ljh;)Lfcr;
-
getOutlineShape
protected VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) - Overrides:
getOutlineShape
in classAbstractBlock
- 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
Ldxt;a(Ldxu;Ldgm;Ljh;Lfcc;)Lfcr;
-
isTransparent
- Overrides:
isTransparent
in classAbstractBlock
- Mappings:
Namespace Name Mixin selector named isTransparent
Lnet/minecraft/block/AbstractBlock;isTransparent(Lnet/minecraft/block/BlockState;)Z
intermediary method_9579
Lnet/minecraft/class_4970;method_9579(Lnet/minecraft/class_2680;)Z
official e_
Ldxt;e_(Ldxu;)Z
-
hasComparatorOutput
Returns 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:
hasComparatorOutput
in classAbstractBlock
- 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_
Ldxt;c_(Ldxu;)Z
-
getComparatorOutput
Returns the comparator output of the block, from0
to15
.When overriding this,
hasComparatorOutput(net.minecraft.block.BlockState)
must also be overridden.- Overrides:
getComparatorOutput
in classAbstractBlock
- Returns:
- the comparator output of the block, from
0
to15
- 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
Ldxt;a(Ldxu;Ldhh;Ljh;)I
-
getPickStack
Returns the new item stack when using pick block functionality.Pick block is available via middle-clicking by default. Blocks without the corresponding
BlockItem
, such as crops, should override this method to return the correct item stack.- Overrides:
getPickStack
in classBlock
- Returns:
- the new item stack when using pick block functionality
- Mappings:
Namespace Name Mixin selector named getPickStack
Lnet/minecraft/block/Block;getPickStack(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/item/ItemStack;
intermediary method_9574
Lnet/minecraft/class_2248;method_9574(Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Lnet/minecraft/class_1799;
official a
Ldkl;a(Ldhk;Ljh;Ldxu;)Lcxo;
-
getColor
- Mappings:
Namespace Name Mixin selector named getColor
Lnet/minecraft/block/ShulkerBoxBlock;getColor(Lnet/minecraft/item/Item;)Lnet/minecraft/util/DyeColor;
intermediary method_10527
Lnet/minecraft/class_2480;method_10527(Lnet/minecraft/class_1792;)Lnet/minecraft/class_1767;
official b
Ldrn;b(Lcxk;)Lcwl;
-
getColor
- Mappings:
Namespace Name Mixin selector named getColor
Lnet/minecraft/block/ShulkerBoxBlock;getColor(Lnet/minecraft/block/Block;)Lnet/minecraft/util/DyeColor;
intermediary method_10526
Lnet/minecraft/class_2480;method_10526(Lnet/minecraft/class_2248;)Lnet/minecraft/class_1767;
official a
Ldrn;a(Ldkl;)Lcwl;
-
get
- Mappings:
Namespace Name Mixin selector named get
Lnet/minecraft/block/ShulkerBoxBlock;get(Lnet/minecraft/util/DyeColor;)Lnet/minecraft/block/Block;
intermediary method_10525
Lnet/minecraft/class_2480;method_10525(Lnet/minecraft/class_1767;)Lnet/minecraft/class_2248;
official a
Ldrn;a(Lcwl;)Ldkl;
-
getColor
- Mappings:
Namespace Name Mixin selector named getColor
Lnet/minecraft/block/ShulkerBoxBlock;getColor()Lnet/minecraft/util/DyeColor;
intermediary method_10528
Lnet/minecraft/class_2480;method_10528()Lnet/minecraft/class_1767;
official b
Ldrn;b()Lcwl;
-
getItemStack
- Mappings:
Namespace Name Mixin selector named getItemStack
Lnet/minecraft/block/ShulkerBoxBlock;getItemStack(Lnet/minecraft/util/DyeColor;)Lnet/minecraft/item/ItemStack;
intermediary method_10529
Lnet/minecraft/class_2480;method_10529(Lnet/minecraft/class_1767;)Lnet/minecraft/class_1799;
official b
Ldrn;b(Lcwl;)Lcxo;
-
rotate
Returnsstate
rotated byrotation
.By default, this returns the provided block state.
- Overrides:
rotate
in classAbstractBlock
- Returns:
state
rotated byrotation
- 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
Ldxt;a(Ldxu;Ldrb;)Ldxu;
-
mirror
Returnsstate
mirrored bymirror
.By default, this returns the provided block state.
- Overrides:
mirror
in classAbstractBlock
- Returns:
state
mirrored bymirror
- 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
Ldxt;a(Ldxu;Ldpk;)Ldxu;
-