some changes

This commit is contained in:
ScriptCat 2025-07-26 14:51:45 +03:00
parent 557588d535
commit aceee4a8bc
3 changed files with 0 additions and 39 deletions

View File

@ -1,37 +0,0 @@
package tokarotik.giftapi.NBT;
import net.minecraft.server.v1_6_R3.EntityPlayer;
import net.minecraft.server.v1_6_R3.NBTTagCompound;
import org.bukkit.entity.Player;
import tokarotik.giftapi.NBT.cache.BasicNBT;
public class NBTManager
{
private final BasicNBT basicNBT;
public NBTManager(String world)
{
this.basicNBT = new BasicNBT(world);
}
public boolean write(Player player)
{
EntityPlayer entityPlayer = this.basicNBT.getPlayer(player);
NBTTagCompound tag = this.basicNBT.readPlayerNBT(entityPlayer);
// some action
return this.basicNBT.writePlayerNBT(tag, entityPlayer);
}
public boolean read(Player player)
{
EntityPlayer entityPlayer = this.basicNBT.getPlayer(player);
NBTTagCompound tag = this.basicNBT.readPlayerNBT(entityPlayer);
//some action
return true;
}
}

View File

@ -6,7 +6,6 @@ import org.bukkit.Bukkit;
import org.bukkit.World;
import org.bukkit.entity.Player;
import org.jetbrains.annotations.Nullable;
import tokarotik.giftapi.NBT.cache.BasicNBT;
public class WorldNBTSynchronizer
{

View File

@ -6,7 +6,6 @@ import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import tokarotik.giftapi.APIManager;
import tokarotik.giftapi.NBT.NBTManager;
public class GiftCommand implements CommandExecutor {