Interface HTModelOutput

  • All Implemented Interfaces:
    java.util.function.BiConsumer

    
    public interface HTModelOutput
     implements BiConsumer<ResourceLocation, Supplier<JsonElement>>
                        

    モデルJSONの出力先を表すインターフェースです。

    Since:

    0.10.0

    Author:

    Hiiragi Tsubasa

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Unit accept(ResourceLocation id, JsonElement json, ResType resType) 指定された引数からモデルJSONを保存します。
      Unit accept(ResourceLocation id, Supplier<JsonElement> json)
      • Methods inherited from class java.util.function.BiConsumer

        andThen
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • accept

         abstract Unit accept(ResourceLocation id, JsonElement json, ResType resType)

        指定された引数からモデルJSONを保存します。

        Parameters:
        id - モデルJSONのID
        json - モデルJSONの本体
        resType - 保存するリソースの種類