Class HTFluidInputHandler

  • All Implemented Interfaces:
    hiiragi283.lib.recipe.handler.HTInputHandler , hiiragi283.lib.transfer.HTResourceSlot , hiiragi283.lib.transfer.HTResourceView , net.neoforged.neoforge.common.util.ValueIOSerializable

    
    public final class HTFluidInputHandler
     implements HTInputHandler<FluidStack>, HTResourceSlot<FluidResource>
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract FluidResource getResource()
      abstract Long getAmountAsLong()
      Integer getAmountAsInt()
      Result<Integer> extract(Integer amount, TransactionContext transaction) 指定した数量だけ中身を消費します。
      • Methods inherited from class hiiragi283.lib.transfer.HTResourceSlot

        extract, insert, isValid
      • Methods inherited from class hiiragi283.lib.transfer.HTResourceView

        getCapacityAsInt, getCapacityAsLong, getCurrentCapacityAsInt, getCurrentCapacityAsLong, getFilledLevel, getNeededAsInt, getNeededAsLong, isEmpty
      • Methods inherited from class net.neoforged.neoforge.common.util.ValueIOSerializable

        deserialize, serialize
      • Methods inherited from class java.lang.Object

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