类 VanillaInventoryCodeHooks
java.lang.Object
net.neoforged.neoforge.items.VanillaInventoryCodeHooks
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static boolean
extractHook
(Hopper dest, IItemHandler handler) Tries to extract items from an item handler and insert them in the hopper.static ContainerOrHandler
getEntityContainerOrHandler
(Level level, double x, double y, double z, @Nullable Direction side) static boolean
insertHook
(HopperBlockEntity hopper, IItemHandler itemHandler) Tries to insert a hopper's items into an item handler.private static boolean
isFull
(IItemHandler itemHandler)
-
构造器详细资料
-
VanillaInventoryCodeHooks
public VanillaInventoryCodeHooks()
-
-
方法详细资料
-
extractHook
Tries to extract items from an item handler and insert them in the hopper.- 参数:
handler
- target item handler- 返回:
true
if we moved an item,false
if we moved no items
-
insertHook
Tries to insert a hopper's items into an item handler.- 参数:
itemHandler
- target item handler- 返回:
true
if we moved an item,false
if we moved no items
-
isFull
-
getEntityContainerOrHandler
public static ContainerOrHandler getEntityContainerOrHandler(Level level, double x, double y, double z, @Nullable @Nullable Direction side)
-