change nbt format: change class names
This commit is contained in:
parent
4433d3b3df
commit
47a69ce8bc
143 changed files with 1207 additions and 1207 deletions
|
@ -5,7 +5,7 @@ import client.renderer.RenderBuffer;
|
|||
import client.renderer.texture.TextureAtlasSprite;
|
||||
import common.entity.Entity;
|
||||
import common.entity.EntityType;
|
||||
import common.nbt.NBTTagCompound;
|
||||
import common.nbt.TagObject;
|
||||
import common.util.ExtMath;
|
||||
import common.world.World;
|
||||
|
||||
|
@ -210,14 +210,14 @@ public class EntityFX extends Entity
|
|||
/**
|
||||
* (abstract) Protected helper method to write subclass entity data to NBT.
|
||||
*/
|
||||
public void writeEntityToNBT(NBTTagCompound tagCompound)
|
||||
public void writeEntityToNBT(TagObject tagCompound)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* (abstract) Protected helper method to read subclass entity data from NBT.
|
||||
*/
|
||||
public void readEntityFromNBT(NBTTagCompound tagCompund)
|
||||
public void readEntityFromNBT(TagObject tagCompund)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -6,8 +6,8 @@ import client.world.WorldClient;
|
|||
import common.entity.Entity;
|
||||
import common.init.SoundEvent;
|
||||
import common.item.ItemDye;
|
||||
import common.nbt.NBTTagCompound;
|
||||
import common.nbt.NBTTagTagList;
|
||||
import common.nbt.TagObject;
|
||||
import common.nbt.TagObjectList;
|
||||
import common.util.BoundingBox;
|
||||
import common.util.ExtMath;
|
||||
import common.world.World;
|
||||
|
@ -192,10 +192,10 @@ public class EntityFirework
|
|||
{
|
||||
private int fireworkAge;
|
||||
private final EffectRenderer theEffectRenderer;
|
||||
private NBTTagTagList fireworkExplosions;
|
||||
private TagObjectList fireworkExplosions;
|
||||
boolean twinkle;
|
||||
|
||||
public StarterFX(World p_i46464_1_, double p_i46464_2_, double p_i46464_4_, double p_i46464_6_, double p_i46464_8_, double p_i46464_10_, double p_i46464_12_, EffectRenderer p_i46464_14_, NBTTagCompound p_i46464_15_)
|
||||
public StarterFX(World p_i46464_1_, double p_i46464_2_, double p_i46464_4_, double p_i46464_6_, double p_i46464_8_, double p_i46464_10_, double p_i46464_12_, EffectRenderer p_i46464_14_, TagObject p_i46464_15_)
|
||||
{
|
||||
super(p_i46464_1_, p_i46464_2_, p_i46464_4_, p_i46464_6_, 0.0D, 0.0D, 0.0D);
|
||||
this.motionX = p_i46464_8_;
|
||||
|
@ -218,7 +218,7 @@ public class EntityFirework
|
|||
|
||||
for (int i = 0; i < this.fireworkExplosions.size(); ++i)
|
||||
{
|
||||
NBTTagCompound nbttagcompound = this.fireworkExplosions.get(i);
|
||||
TagObject nbttagcompound = this.fireworkExplosions.get(i);
|
||||
|
||||
if (nbttagcompound.getBool("Flicker"))
|
||||
{
|
||||
|
@ -250,7 +250,7 @@ public class EntityFirework
|
|||
{
|
||||
for (int i = 0; i < this.fireworkExplosions.size(); ++i)
|
||||
{
|
||||
NBTTagCompound nbttagcompound = this.fireworkExplosions.get(i);
|
||||
TagObject nbttagcompound = this.fireworkExplosions.get(i);
|
||||
|
||||
if (nbttagcompound.getByte("Type") == 1)
|
||||
{
|
||||
|
@ -268,7 +268,7 @@ public class EntityFirework
|
|||
if (this.fireworkAge % 2 == 0 && this.fireworkExplosions != null && this.fireworkAge / 2 < this.fireworkExplosions.size())
|
||||
{
|
||||
int k = this.fireworkAge / 2;
|
||||
NBTTagCompound nbttagcompound1 = this.fireworkExplosions.get(k);
|
||||
TagObject nbttagcompound1 = this.fireworkExplosions.get(k);
|
||||
int l = nbttagcompound1.getByte("Type");
|
||||
boolean flag4 = nbttagcompound1.getBool("Trail");
|
||||
boolean flag2 = nbttagcompound1.getBool("Flicker");
|
||||
|
|
|
@ -22,7 +22,7 @@ import common.init.SoundEvent;
|
|||
import common.item.ItemDye;
|
||||
import common.log.Log;
|
||||
import common.model.ParticleType;
|
||||
import common.nbt.NBTTagCompound;
|
||||
import common.nbt.TagObject;
|
||||
import common.rng.Random;
|
||||
import common.sound.MovingSoundMinecart;
|
||||
import common.sound.PositionedSound;
|
||||
|
@ -381,7 +381,7 @@ public class WorldClient extends AWorldClient
|
|||
// }
|
||||
}
|
||||
|
||||
public void makeFireworks(double x, double y, double z, double motionX, double motionY, double motionZ, NBTTagCompound compund)
|
||||
public void makeFireworks(double x, double y, double z, double motionX, double motionY, double motionZ, TagObject compund)
|
||||
{
|
||||
this.gm.effectRenderer.addEffect(new EntityFirework.StarterFX(this.gm.world, x, y, z, motionX, motionY, motionZ, this.gm.effectRenderer, compund));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue