diff options
author | chill <chill.gtnh@outlook.com> | 2023-05-07 16:14:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-07 16:14:51 +0200 |
commit | df2fb5c5cc0f2cf60439feac8100ed5990f4bcbc (patch) | |
tree | 33fce5b906c02dc5dbab9909c08d4978fcc63f22 /src/main/java/gregtech/api/multitileentity/base/MultiTileEntity.java | |
parent | 5df658c52ae4d831339d884413c043326c45d4fc (diff) | |
download | GT5-Unofficial-df2fb5c5cc0f2cf60439feac8100ed5990f4bcbc.tar.gz GT5-Unofficial-df2fb5c5cc0f2cf60439feac8100ed5990f4bcbc.tar.bz2 GT5-Unofficial-df2fb5c5cc0f2cf60439feac8100ed5990f4bcbc.zip |
Add docs to mute (#1960)
* XSTR: fix typo
* XSTR: remove commented-out code
* MultiTileEntity: explain hatches and reword comments
* Move the note on hatches from MTE to Controller
* Remove wrongly-located javadoc
* XSTR: reword to be easier understood
Diffstat (limited to 'src/main/java/gregtech/api/multitileentity/base/MultiTileEntity.java')
-rw-r--r-- | src/main/java/gregtech/api/multitileentity/base/MultiTileEntity.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/gregtech/api/multitileentity/base/MultiTileEntity.java b/src/main/java/gregtech/api/multitileentity/base/MultiTileEntity.java index 9427b4d2b5..af4ef30699 100644 --- a/src/main/java/gregtech/api/multitileentity/base/MultiTileEntity.java +++ b/src/main/java/gregtech/api/multitileentity/base/MultiTileEntity.java @@ -72,14 +72,14 @@ public abstract class MultiTileEntity extends CoverableTileEntity private ITexture backOverlayTexture = null; private ITexture frontOverlayTexture = null; - // Makes a Bounding Box without having to constantly specify the Offset Coordinates. + // A Bounding Box without having to constantly specify the Offset Coordinates. protected static final float[] PX_BOX = { 0, 0, 0, 1, 1, 1 }; public Materials material = Materials._NULL; protected final boolean isTicking; // If this TileEntity is ticking at all - // This Variable checks if this TileEntity should refresh when the Block is being set. That way you - // can turn this check off any time you need it. + // Checks if this TileEntity should refresh when the Block is being set. + // This way you can toggle this check at any time. protected boolean shouldRefresh = true; protected boolean needsBlockUpdate = false; // This Variable is for a buffered Block Update. @@ -207,12 +207,12 @@ public abstract class MultiTileEntity extends CoverableTileEntity @Override public void readFromNBT(NBTTagCompound nbt) { - // Check if this is a World/Chunk Loading Process calling readFromNBT. + // Check if it is a World/Chunk-Loading Process calling readFromNBT if (mteID == GT_Values.W || mteRegistry == GT_Values.W) { - // Yes it is, so read the ID Tags first. + // Read the ID Tags first mteID = nbt.getShort(NBT.MTE_ID); mteRegistry = nbt.getShort(NBT.MTE_REG); - // And add additional Default Parameters, in case the Mod updated with new ones. + // Add additional Default Parameters in case the Mod updated with new ones final MultiTileEntityRegistry tRegistry = MultiTileEntityRegistry.getRegistry(mteRegistry); if (tRegistry != null) { final MultiTileEntityClassContainer tClass = tRegistry.getClassContainer(mteID); |