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>partManagerprivate final HTMaterialManagermaterialManagerprivate final HTMaterialAccessexistingContentsprivate final HTMaterialAccessregisteredContentsprivate final HTMaterialContents<HTFluidPart, HTMaterialContents.FluidEntry>registeredFluidspublic final BiCodec<ByteBuf, HTPart>partCodec
-
Constructor Summary
Constructors Constructor Description HiiragiCoreAccessImpl()
-
Method Summary
-
-
Method Detail
-
getMaterialPlugins
final Sequence<HTMaterialPlugin> getMaterialPlugins()
-
getPartManager
final Map<String, HTPart> getPartManager()
-
getMaterialManager
HTMaterialManager getMaterialManager()
-
getExistingContents
HTMaterialAccess getExistingContents()
-
getRegisteredContents
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(HolderLookup.Provider provider, TagKey<T> tagKey)
- Returns:
HTSimpleHolderLikeの結果
-
createInput
HTValueInput createInput(HolderLookup.Provider provider, JsonObject jsonObject)
指定したレジストリとJSONからHTValueInputを作成します。
-
createInput
HTValueInput createInput(HolderLookup.Provider provider, CompoundTag compoundTag)
指定したレジストリとNBTからHTValueInputを作成します。
-
createOutput
HTValueOutput createOutput(HolderLookup.Provider provider, JsonObject jsonObject)
指定したレジストリとJSONからHTValueOutputを作成します。
-
createOutput
HTValueOutput createOutput(HolderLookup.Provider provider, CompoundTag compoundTag)
指定したレジストリとNBTからHTValueOutputを作成します。
-
clearTagCache
final static Unit clearTagCache(TagsUpdatedEvent event)
-
-
-
-