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$SingleStackBlockEntityInventoryintermediary net/minecraft/class_8181$class_9210official eyn$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 booleancanPlayerUse(PlayerEntity player) Returns whetherplayercan use this inventory.Methods inherited from interface net.minecraft.inventory.Inventory
canTransferTo, containsAny, containsAny, count, getMaxCount, getMaxCountPerStack, isValid, markDirty, onClose, onOpenMethods 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 asBlockEntityLnet/minecraft/inventory/SingleStackInventory$SingleStackBlockEntityInventory;asBlockEntity()Lnet/minecraft/block/entity/BlockEntity;intermediary method_54080Lnet/minecraft/class_8181$class_9210;method_54080()Lnet/minecraft/class_2586;official vLeyn$a;v()Ldqh;
-
canPlayerUse
Returns whetherplayercan use this inventory.This is called by
ScreenHandler.canUse(net.minecraft.screen.ScreenHandlerContext, net.minecraft.entity.player.PlayerEntity, net.minecraft.block.Block).- Specified by:
canPlayerUsein interfaceInventory- Returns:
- whether
playercan 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 canPlayerUseLnet/minecraft/inventory/Inventory;canPlayerUse(Lnet/minecraft/entity/player/PlayerEntity;)Zintermediary method_5443Lnet/minecraft/class_1263;method_5443(Lnet/minecraft/class_1657;)Zofficial aLbqk;a(Lcmx;)Z
-