Class LevelExtensionsKt

    • 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
      final static AABB getRangedAABB(Vec3 $self, Number radius) この座標を中心とし,radiusを半径とする三次元の範囲を返します。
      final static <BE extends BlockEntity> BE getTypedBlockEntity(BlockGetter $self, BlockPos pos) 指定したレベルと座標からBlockEntityを取得します。
      final static Unit sendBlockUpdated(Level $self, BlockPos pos) 指定したレベルと座標にブロック更新を発生させます。
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • getRangedAABB

         final static AABB getRangedAABB(Vec3 $self, Number radius)

        この座標を中心とし,radiusを半径とする三次元の範囲を返します。

        Since:

        0.1.0

      • getTypedBlockEntity

         final static <BE extends BlockEntity> BE getTypedBlockEntity(BlockGetter $self, BlockPos pos)

        指定したレベルと座標からBlockEntityを取得します。

        Returns:

        指定した座標にBlockEntityがない場合,または取得したBlockEntityがBEにキャストできない場合はnull

        Since:

        0.1.0

      • sendBlockUpdated

         final static Unit sendBlockUpdated(Level $self, BlockPos pos)

        指定したレベルと座標にブロック更新を発生させます。

        Since:

        0.1.0