Package net.minecraft.inventory
Interface SingleStackInventory.SingleStackBlockEntityInventory
- All Superinterfaces:
Clearable
,Inventory
,SingleStackInventory
- All Known Implementing Classes:
DecoratedPotBlockEntity
,JukeboxBlockEntity
- Enclosing interface:
SingleStackInventory
public static interface SingleStackInventory.SingleStackBlockEntityInventory
extends SingleStackInventory
- Mappings:
Namespace Name named net/minecraft/inventory/SingleStackInventory$SingleStackBlockEntityInventory
intermediary net/minecraft/class_8181$class_9210
official fdj$a
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.inventory.SingleStackInventory
SingleStackInventory.SingleStackBlockEntityInventory
-
Field Summary
Fields inherited from interface net.minecraft.inventory.Inventory
DEFAULT_MAX_INTERACTION_RANGE
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
canPlayerUse
(PlayerEntity player) Returns whetherplayer
can use this inventory.Methods inherited from interface net.minecraft.inventory.Inventory
canTransferTo, containsAny, containsAny, count, getMaxCount, getMaxCountPerStack, isValid, markDirty, onClose, onOpen
Methods inherited from interface net.minecraft.inventory.SingleStackInventory
clear, decreaseStack, emptyStack, getStack, getStack, isEmpty, removeStack, removeStack, setStack, setStack, size
-
Method Details
-
asBlockEntity
BlockEntity asBlockEntity()- Mappings:
Namespace Name Mixin selector named asBlockEntity
Lnet/minecraft/inventory/SingleStackInventory$SingleStackBlockEntityInventory;asBlockEntity()Lnet/minecraft/block/entity/BlockEntity;
intermediary method_54080
Lnet/minecraft/class_8181$class_9210;method_54080()Lnet/minecraft/class_2586;
official v
Lfdj$a;v()Lduw;
-
canPlayerUse
Returns whetherplayer
can use this inventory.This is called by
ScreenHandler.canUse(net.minecraft.screen.ScreenHandlerContext, net.minecraft.entity.player.PlayerEntity, net.minecraft.block.Block)
.- Specified by:
canPlayerUse
in interfaceInventory
- Returns:
- whether
player
can use this inventory - See Also:
- API Note:
- Implementations should check the distance between the inventory
holder and
player
. For convenience, this interface offers two methods used by block entities to implement this check. - Mappings:
Namespace Name Mixin selector named canPlayerUse
Lnet/minecraft/inventory/Inventory;canPlayerUse(Lnet/minecraft/entity/player/PlayerEntity;)Z
intermediary method_5443
Lnet/minecraft/class_1263;method_5443(Lnet/minecraft/class_1657;)Z
official a
Lbtb;a(Lcpw;)Z
-