Package hiiragi283.core.api.world
Class LevelExtensionsKt
-
- All Implemented Interfaces:
public final class LevelExtensionsKt
-
-
Method Summary
Modifier and Type Method Description final static AABBgetRangedAABB(Vec3 $self, Number radius)この座標を中心とし,radiusを半径とする三次元の範囲を返します。 final static <BE extends BlockEntity> BEgetTypedBlockEntity(BlockGetter $self, BlockPos pos)指定したレベルと座標からBlockEntityを取得します。 final static UnitsendBlockUpdated(Level $self, BlockPos pos)指定したレベルと座標にブロック更新を発生させます。 -
-
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
-
-
-
-