Class HTFluidResourceType

  • All Implemented Interfaces:
    hiiragi283.core.api.resource.HTIdLike , hiiragi283.core.api.resource.HTKeyLike , hiiragi283.core.api.storage.resource.HTResourceType , hiiragi283.core.api.storage.resource.HTResourceType.DataComponent , hiiragi283.core.api.storage.resource.HTResourceType.Registered , hiiragi283.core.api.text.HTHasText , net.minecraft.core.component.DataComponentHolder , net.neoforged.neoforge.common.extensions.IDataComponentHolderExtension , net.neoforged.neoforge.registries.datamaps.IWithData

    
    public final class HTFluidResourceType
     implements HTResourceType.DataComponent<Fluid>
                        

    液体向けのHTResourceType.DataComponentの実装クラスです。

    Since:

    0.4.0

    Author:

    Hiiragi Tsubasa

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      String getNamespace()
      String getPath()
      final FluidType fluidType() 保持している液体のFluidTypeを返します。
      final Boolean isOf(FluidStack stack)
      final FluidStack toStack(Integer amount)
      Boolean equals(Object other)
      Integer hashCode()
      String toString()
      final Holder<Fluid> component1()
      final DataComponentPatch component2()
      DataComponentPatch componentsPatch() このリソースのDataComponentPatchを返します。
      Fluid type()
      Component getText() テキストを取得します。
      Holder<Fluid> getHolder()
      DataComponentMap getComponents()
      final static HTFluidResourceType of(FluidStack stack) 指定したstackHTFluidResourceTypeに変換します。
      • Methods inherited from class hiiragi283.core.api.storage.fluid.HTFluidResourceType

        getComponents
      • Methods inherited from class hiiragi283.core.api.storage.resource.HTResourceType.Registered

        getData, getResourceKey, isOf, isOf
      • Methods inherited from class hiiragi283.core.api.storage.resource.HTResourceType

        isOf
      • Methods inherited from class hiiragi283.core.api.resource.HTKeyLike

        getId, isOf, isOf
      • Methods inherited from class net.minecraft.core.component.DataComponentHolder

        get, getOrDefault, has
      • Methods inherited from class net.neoforged.neoforge.common.extensions.IDataComponentHolderExtension

        addToTooltip, addToTooltip, get, getOrDefault, has
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait