Package hiiragi283.core.api.capability
Interface HTAmountViewCapability
-
- All Implemented Interfaces:
-
hiiragi283.core.api.capability.HTMultiCapability
public interface HTAmountViewCapability<HANDLER extends Object, ITEM_HANDLER extends HANDLER> implements HTMultiCapability<HANDLER, ITEM_HANDLER>
HTAmountViewを取得するHTMultiCapabilityの拡張インターフェース
- Since:
0.1.0
Hiiragi Tsubasa
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceHTAmountViewCapability.Simple
-
Method Summary
Modifier and Type Method Description abstract List<HTAmountView>apply(HANDLER handler, Direction context)List<HTAmountView>getCapabilityViews(Level level, BlockPos pos, Direction side)指定した引数からHTAmountViewの一覧を返します。 List<HTAmountView>getCapabilityViews(Entity entity, Direction side)List<HTAmountView>getCapabilityViews(ItemStack stack)指定した引数からHTAmountViewの一覧を返します。 List<HTAmountView>getCapabilityViews(HTItemResourceType resource)HTAmountViewgetCapabilityView(Level level, BlockPos pos, Direction side, Integer index)指定した引数からindexに対応するHTAmountViewを返します。 HTAmountViewgetCapabilityView(Entity entity, Direction side, Integer index)HTAmountViewgetCapabilityView(ItemStack stack, Integer index)指定した引数からindexに対応するHTAmountViewを返します。 HTAmountViewgetCapabilityView(HTItemResourceType resource, Integer index)List<Integer>getCapabilityAmounts(Entity entity, Direction side)List<Integer>getCapabilityAmounts(ItemStack stack)List<Integer>getCapabilityAmounts(HTItemResourceType resource)IntegergetCapabilityAmount(Entity entity, Direction side, Integer index)IntegergetCapabilityAmount(ItemStack stack, Integer index)IntegergetCapabilityAmount(HTItemResourceType resource, Integer index)abstract BlockCapability<HANDLER, Direction>getBlock()abstract EntityCapability<HANDLER, Direction>getEntity()abstract ItemCapability<ITEM_HANDLER, Void>getItem()-
Methods inherited from class hiiragi283.core.api.capability.HTMultiCapability
createCache, createCache, getCapability, getCapability, getCapability, getCapability, hasCapability, hasCapability, registerBlock, registerBlockEntity, registerEntity, registerItem -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
apply
abstract List<HTAmountView> apply(HANDLER handler, Direction context)
-
getCapabilityViews
List<HTAmountView> getCapabilityViews(Level level, BlockPos pos, Direction side)
指定した引数からHTAmountViewの一覧を返します。
- Returns:
-
getCapabilityViews
List<HTAmountView> getCapabilityViews(Entity entity, Direction side)
-
getCapabilityViews
List<HTAmountView> getCapabilityViews(ItemStack stack)
指定した引数からHTAmountViewの一覧を返します。
- Returns:
-
getCapabilityViews
List<HTAmountView> getCapabilityViews(HTItemResourceType resource)
-
getCapabilityView
HTAmountView getCapabilityView(Level level, BlockPos pos, Direction side, Integer index)
指定した引数からindexに対応するHTAmountViewを返します。
- Returns:
見つからない場合は
null
-
getCapabilityView
HTAmountView getCapabilityView(Entity entity, Direction side, Integer index)
-
getCapabilityView
HTAmountView getCapabilityView(ItemStack stack, Integer index)
指定した引数からindexに対応するHTAmountViewを返します。
- Returns:
見つからない場合は
null
-
getCapabilityView
HTAmountView getCapabilityView(HTItemResourceType resource, Integer index)
-
getCapabilityAmounts
List<Integer> getCapabilityAmounts(Entity entity, Direction side)
-
getCapabilityAmounts
List<Integer> getCapabilityAmounts(ItemStack stack)
-
getCapabilityAmounts
List<Integer> getCapabilityAmounts(HTItemResourceType resource)
-
getCapabilityAmount
Integer getCapabilityAmount(Entity entity, Direction side, Integer index)
-
getCapabilityAmount
Integer getCapabilityAmount(ItemStack stack, Integer index)
-
getCapabilityAmount
Integer getCapabilityAmount(HTItemResourceType resource, Integer index)
-
getItem
abstract ItemCapability<ITEM_HANDLER, Void> getItem()
-
-
-
-