Files
CustomNPC-Plus/src/main/java/noppes/npcs/roles/RoleAuctioneer.java
T
2026-01-23 21:53:12 -05:00

42 lines
1.0 KiB
Java

package noppes.npcs.roles;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.nbt.NBTTagCompound;
import noppes.npcs.NoppesUtilServer;
import noppes.npcs.config.ConfigMarket;
import noppes.npcs.constants.EnumGuiType;
import noppes.npcs.entity.EntityNPCInterface;
public class RoleAuctioneer extends RoleInterface {
public RoleAuctioneer(EntityNPCInterface npc) {
super(npc);
}
@Override
public NBTTagCompound writeToNBT(NBTTagCompound compound) {
// Simple role - no custom data needed
return compound;
}
@Override
public void readFromNBT(NBTTagCompound compound) {
// Simple role - no custom data needed
}
@Override
public void interact(EntityPlayer player) {
if (!ConfigMarket.AuctionEnabled) {
return;
}
// Open the auction house GUI
NoppesUtilServer.sendOpenGui(player, EnumGuiType.PlayerAuction, npc);
}
@Override
public void delete() {
// No cleanup needed
}
}