Interface HTAbstractBlockEntity

  • All Implemented Interfaces:

    
    public interface HTAbstractBlockEntity
    
                        

    BlockEntityに実装されるインターフェースです。

    Since:

    0.1.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 Level getLevel() レベルを取得します。
      ServerLevel getServerLevel() サーバーレベルを取得します。
      RegistryAccess getRegistryAccess() レジストリへのアクセスを取得します。
      abstract BlockPos getBlockPos() 座標を取得します。
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • getLevel

         abstract Level getLevel()

        レベルを取得します。

        Returns:

        レベルがない場合はnull

      • getServerLevel

         ServerLevel getServerLevel()

        サーバーレベルを取得します。

        Returns:

        レベルがない場合,またはgetLevelの戻り値がServerLevelにキャストできない場合はnull

      • getBlockPos

         abstract BlockPos getBlockPos()

        座標を取得します。