Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package fr.lavapower.harmonia.common.entity;
- import net.minecraft.nbt.NBTTagCompound;
- import net.minecraft.tileentity.TileEntity;
- public class TileEntityStatue extends TileEntity
- {
- private String pseudo;
- private int direction;
- @Override
- public void readFromNBT(NBTTagCompound compound)
- {
- super.readFromNBT(compound);
- this.pseudo=compound.getString("Pseudo");
- this.direction=compound.getInteger("Direction");
- }
- @Override
- public void writeToNBT(NBTTagCompound compound)
- {
- super.writeToNBT(compound);
- compound.setString("Pseudo",pseudo);
- compound.setInteger("Direction",direction);
- }
- public String getPseudo()
- {
- return pseudo;
- }
- public void setPseudo(String pseudos)
- {
- pseudo = pseudos;
- }
- public int getDirection()
- {
- return direction;
- }
- public void setDirection(int pseudos)
- {
- direction = pseudos;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement