1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【Minecraft 1.12.2 Modding】本体が写っていないときも常にTileEntitySpecialRendererを表示する方法

Last updated at Posted at 2020-03-27

方法

TileEntityのBoundingBoxの大きさを変更します。maxRenderDistanceを変更すると、非常に遠くからでも見えるようになります。

TileEntity
@Override
public AxisAlignedBB getRenderBoundingBox() {
    return TileEntity.INFINITE_EXTENT_AABB;
}

@Override
public double getMaxRenderDistanceSquared() {
    return Float.POSITIVE_INFINITY;
}

またTileEntitySpecialRendererに以下のメソッドを追加してください。

TileEntityRenderer
@Override
public boolean isGlobalRenderer(TileEntitySuperShape p_isGlobalRenderer_1_) {
    return true;
}

私が作成したSuperShape Modはシンプルなので、TileEntitySpecialRendererを学ぶのにおすすめです。
https://github.com/Nekodigi/SuperShape-Mod

1
1
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?