Package hiiragi283.core.impl
Class HiiragiCoreAccessImpl
-
- All Implemented Interfaces:
public final class HiiragiCoreAccessImpl extends HiiragiCoreAccess
-
-
Field Summary
Fields Modifier and Type Field Description public final static HTPotionFluidManager.HandlerDEFAULT_POTION_HANDLERprivate final Sequence<HTMaterialPlugin>materialPluginsprivate final Map<String, HTPart>partManagerpublic final BiCodec<ByteBuf, HTPart>partCodecprivate final HTMaterialAccessexistingContentsprivate final HTMaterialAccessregisteredContentsprivate final HTMaterialContents<HTFluidPart, HTMaterialContents.FluidEntry>registeredFluids
-
Constructor Summary
Constructors Constructor Description HiiragiCoreAccessImpl()
-
Method Summary
Modifier and Type Method Description final Sequence<HTMaterialPlugin>getMaterialPlugins()final Map<String, HTPart>getPartManager()final HTMaterialAccessgetExistingContents()final HTMaterialAccessgetRegisteredContents()final HTMaterialContents<HTFluidPart, HTMaterialContents.FluidEntry>getRegisteredFluids()BottledPotionContentsgetContents(HTFluidResourceType resource)指定したresourceからBottledPotionContentsを取得します。 BottledPotionContentsgetContents(HTItemResourceType resource)UnitsetContents(FluidStack stack, BottledPotionContents contents)指定したstackにBottledPotionContentsを設定します。 UnitsetContents(ItemStack stack, BottledPotionContents contents)<T extends Any> HTTextResult<HTHolderLike<T, T>>getFirstHolder(HolderSet<T> holderSet)指定したholderSetから,最初のHTSimpleHolderLikeを取得します。 -
Methods inherited from class hiiragi283.core.api.HiiragiCoreAccess
forEachPlugin, forEachPlugin, getFirstHolder, getMaterialBlock, getMaterialBlockOrItem, getMaterialItem -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getMaterialPlugins
final Sequence<HTMaterialPlugin> getMaterialPlugins()
-
getPartManager
final Map<String, HTPart> getPartManager()
-
getExistingContents
final HTMaterialAccess getExistingContents()
-
getRegisteredContents
final HTMaterialAccess getRegisteredContents()
-
getRegisteredFluids
final HTMaterialContents<HTFluidPart, HTMaterialContents.FluidEntry> getRegisteredFluids()
-
getContents
BottledPotionContents getContents(HTFluidResourceType resource)
指定したresourceからBottledPotionContentsを取得します。
- Returns:
取得できなかった場合は
null- Since:
0.11.0
-
getContents
BottledPotionContents getContents(HTItemResourceType resource)
-
setContents
Unit setContents(FluidStack stack, BottledPotionContents contents)
指定したstackにBottledPotionContentsを設定します。
- Since:
0.11.0
-
setContents
Unit setContents(ItemStack stack, BottledPotionContents contents)
-
getFirstHolder
<T extends Any> HTTextResult<HTHolderLike<T, T>> getFirstHolder(HolderSet<T> holderSet)
指定したholderSetから,最初のHTSimpleHolderLikeを取得します。
- Returns:
HTSimpleHolderLikeの結果
- Since:
0.15.2
-
-
-
-