diff options
author | RealSilverMoon <31100241+RealSilverMoon@users.noreply.github.com> | 2024-02-01 01:15:29 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-31 18:15:29 +0100 |
commit | 787eba0a15c583b240e96630978b9c3539e55fa4 (patch) | |
tree | d4a4ba4e4fb4ea9d09174215581da5c79a6413a2 /src/main/java/gregtech/common/tileentities/render | |
parent | 19950f533392fdadc5858ba12adce64374414083 (diff) | |
download | GT5-Unofficial-787eba0a15c583b240e96630978b9c3539e55fa4.tar.gz GT5-Unofficial-787eba0a15c583b240e96630978b9c3539e55fa4.tar.bz2 GT5-Unofficial-787eba0a15c583b240e96630978b9c3539e55fa4.zip |
Add Drone Centre (#2412)
* Add Drone Centre
* Apply texture and model
* Update en_US.lang
* Remove import.*
* Switch to block render
* Balance range and break chance
* Add recipe
* Spotless
* Update lang
* Fix recipe
* Rewrite connection system and UI
* Remove debuff party
* Spotless
* Fix server class not found
* A stupid enough recipe
* Another bad recipe
* Update tooltip & i18n
* Close it!
* Spotless
* Disable draggable
* prohibited remote control when centre is offline
* Rename
* Rename; Change specifiers
* Update texture
* spotless
---------
Co-authored-by: Martin Robertz <dream-master@gmx.net>
Diffstat (limited to 'src/main/java/gregtech/common/tileentities/render')
-rw-r--r-- | src/main/java/gregtech/common/tileentities/render/TileDrone.java | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/main/java/gregtech/common/tileentities/render/TileDrone.java b/src/main/java/gregtech/common/tileentities/render/TileDrone.java new file mode 100644 index 0000000000..625157ff37 --- /dev/null +++ b/src/main/java/gregtech/common/tileentities/render/TileDrone.java @@ -0,0 +1,24 @@ +package gregtech.common.tileentities.render; + +import net.minecraft.tileentity.TileEntity; +import net.minecraft.util.AxisAlignedBB; + +public class TileDrone extends TileEntity { + + public double rotation = 0; + + @Override + public AxisAlignedBB getRenderBoundingBox() { + return INFINITE_EXTENT_AABB; + } + + @Override + public double getMaxRenderDistanceSquared() { + return 65536; + } + + @Override + public void updateEntity() { + rotation = (rotation + 50) % 360d; + } +} |