mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-13 16:54:06 +00:00
Syncing is important, yo.
This commit is contained in:
1 parent
eac9ddaa20
commit
4493f3b090
1 file changed
+21
+21
@@ -17,6 +17,7 @@ import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.entity.item.EntityItem;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.util.AxisAlignedBB;
|
||||
import net.minecraft.util.ChunkCoordinates;
|
||||
import vazkii.botania.api.lexicon.LexiconEntry;
|
||||
@@ -27,6 +28,10 @@ import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
public class SubTileSpectranthemum extends SubTileFunctional {
|
||||
|
||||
private static final String TAG_BIND_X = "bindX";
|
||||
private static final String TAG_BIND_Y = "bindY";
|
||||
private static final String TAG_BIND_Z = "bindZ";
|
||||
|
||||
private static final int COST = 24;
|
||||
int bindX, bindY = -1, bindZ;
|
||||
|
||||
@@ -79,6 +84,22 @@ public class SubTileSpectranthemum extends SubTileFunctional {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeToPacketNBT(NBTTagCompound cmp) {
|
||||
super.writeToPacketNBT(cmp);
|
||||
cmp.setInteger(TAG_BIND_X, bindX);
|
||||
cmp.setInteger(TAG_BIND_Y, bindY);
|
||||
cmp.setInteger(TAG_BIND_Z, bindZ);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void readFromPacketNBT(NBTTagCompound cmp) {
|
||||
super.readFromPacketNBT(cmp);
|
||||
bindX = cmp.getInteger(TAG_BIND_X);
|
||||
bindY = cmp.getInteger(TAG_BIND_Y);
|
||||
bindZ = cmp.getInteger(TAG_BIND_Z);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean acceptsRedstone() {
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user