Added NPC info messages to NpcManager
This commit is contained in:
parent
ee0aa1375d
commit
cc8912b27e
@ -18,8 +18,10 @@
|
||||
<option name="TRANSPORT" value="0" />
|
||||
<option name="LOCAL" value="true" />
|
||||
</RunnerSettings>
|
||||
<RunnerSettings RunnerId="Run" />
|
||||
<ConfigurationWrapper RunnerId="Cover" />
|
||||
<ConfigurationWrapper RunnerId="Debug" />
|
||||
<ConfigurationWrapper RunnerId="Run" />
|
||||
<method>
|
||||
<option name="BuildArtifacts" enabled="true">
|
||||
<artifact name="Mineplex.Hub:test" />
|
||||
|
@ -34,14 +34,14 @@ public class Creature extends MiniPlugin
|
||||
{
|
||||
private boolean _spawnForce = false;
|
||||
private boolean _disableCustom = false;
|
||||
|
||||
public Creature(JavaPlugin plugin)
|
||||
|
||||
public Creature(JavaPlugin plugin)
|
||||
{
|
||||
super("Creature", plugin);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void AddCommands()
|
||||
public void AddCommands()
|
||||
{
|
||||
AddCommand(new MobCommand(this));
|
||||
}
|
||||
@ -51,10 +51,10 @@ public class Creature extends MiniPlugin
|
||||
_spawnForce = true;
|
||||
Entity entity = location.getWorld().spawnEntity(location, entityType);
|
||||
_spawnForce = false;
|
||||
|
||||
|
||||
return entity;
|
||||
}
|
||||
|
||||
|
||||
@EventHandler(priority = EventPriority.HIGHEST)
|
||||
public void eggThrow(PlayerEggThrowEvent event)
|
||||
{
|
||||
@ -63,125 +63,125 @@ public class Creature extends MiniPlugin
|
||||
|
||||
event.setHatching(false);
|
||||
}
|
||||
|
||||
|
||||
@EventHandler
|
||||
public void Spawn(CreatureSpawnEvent event)
|
||||
{
|
||||
if (_disableCustom)
|
||||
return;
|
||||
|
||||
|
||||
if (event.getEntity() instanceof LivingEntity)
|
||||
((LivingEntity)event.getEntity()).setCanPickupItems(false);
|
||||
|
||||
if (_spawnForce)
|
||||
return;
|
||||
|
||||
|
||||
//Useless Laggy Squids
|
||||
if (event.getEntityType() == EntityType.SQUID)
|
||||
{
|
||||
event.setCancelled(true);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
CreatureSpawnCustomEvent customEvent = new CreatureSpawnCustomEvent(event.getLocation());
|
||||
|
||||
|
||||
_plugin.getServer().getPluginManager().callEvent(customEvent);
|
||||
|
||||
|
||||
if (customEvent.isCancelled())
|
||||
{
|
||||
event.setCancelled(true);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@EventHandler
|
||||
public void Death(EntityDeathEvent event)
|
||||
{
|
||||
if (_disableCustom)
|
||||
return;
|
||||
|
||||
|
||||
event.setDroppedExp(0);
|
||||
List<ItemStack> drops = event.getDrops();
|
||||
|
||||
|
||||
|
||||
|
||||
if (event.getEntityType() == EntityType.PLAYER)
|
||||
drops.add(ItemStackFactory.Instance.CreateStack(Material.BONE, 1));
|
||||
else
|
||||
drops.clear();
|
||||
|
||||
|
||||
//Animals
|
||||
if (event.getEntityType() == EntityType.CHICKEN)
|
||||
{
|
||||
{
|
||||
drops.add(ItemStackFactory.Instance.CreateStack(Material.RAW_CHICKEN, 1));
|
||||
drops.add(ItemStackFactory.Instance.CreateStack(Material.FEATHER, 2 + UtilMath.r(5)));
|
||||
drops.add(ItemStackFactory.Instance.CreateStack(Material.BONE, 1));
|
||||
}
|
||||
|
||||
|
||||
else if (event.getEntityType() == EntityType.COW)
|
||||
{
|
||||
drops.add(ItemStackFactory.Instance.CreateStack(Material.RAW_BEEF, 1 + UtilMath.r(4)));
|
||||
drops.add(ItemStackFactory.Instance.CreateStack(Material.LEATHER, 2 + UtilMath.r(3)));
|
||||
drops.add(ItemStackFactory.Instance.CreateStack(Material.BONE, 3 + UtilMath.r(4)));
|
||||
}
|
||||
|
||||
|
||||
if (event.getEntityType() == EntityType.MUSHROOM_COW)
|
||||
{
|
||||
drops.add(ItemStackFactory.Instance.CreateStack(Material.RAW_BEEF, 1 + UtilMath.r(4)));
|
||||
drops.add(ItemStackFactory.Instance.CreateStack(Material.RED_MUSHROOM, 2 + UtilMath.r(3)));
|
||||
drops.add(ItemStackFactory.Instance.CreateStack(Material.BONE, 3 + UtilMath.r(4)));
|
||||
}
|
||||
|
||||
|
||||
else if (event.getEntityType() == EntityType.OCELOT)
|
||||
{
|
||||
drops.add(ItemStackFactory.Instance.CreateStack(Material.RAW_BEEF, 1 + UtilMath.r(2)));
|
||||
drops.add(ItemStackFactory.Instance.CreateStack(Material.RAW_FISH, 2 + UtilMath.r(7)));
|
||||
drops.add(ItemStackFactory.Instance.CreateStack(Material.BONE, 1 + UtilMath.r(2)));
|
||||
}
|
||||
|
||||
|
||||
else if (event.getEntityType() == EntityType.PIG)
|
||||
{
|
||||
drops.add(ItemStackFactory.Instance.CreateStack(Material.PORK, 1 + UtilMath.r(2)));
|
||||
drops.add(ItemStackFactory.Instance.CreateStack(Material.BONE, 2 + UtilMath.r(2)));
|
||||
}
|
||||
|
||||
|
||||
else if (event.getEntityType() == EntityType.SHEEP)
|
||||
{
|
||||
drops.add(ItemStackFactory.Instance.CreateStack(Material.RAW_BEEF, 1 + UtilMath.r(3)));
|
||||
drops.add(ItemStackFactory.Instance.CreateStack(Material.WOOL, 1 + UtilMath.r(4)));
|
||||
drops.add(ItemStackFactory.Instance.CreateStack(Material.BONE, 2 + UtilMath.r(3)));
|
||||
}
|
||||
|
||||
|
||||
else if (event.getEntityType() == EntityType.VILLAGER)
|
||||
{
|
||||
drops.add(ItemStackFactory.Instance.CreateStack(Material.BONE, 2 + UtilMath.r(3)));
|
||||
}
|
||||
|
||||
|
||||
//Monsters
|
||||
else if (event.getEntityType() == EntityType.BLAZE)
|
||||
{
|
||||
drops.add(ItemStackFactory.Instance.CreateStack(Material.BLAZE_ROD, 1));
|
||||
drops.add(ItemStackFactory.Instance.CreateStack(Material.BONE, 6 + UtilMath.r(7)));
|
||||
}
|
||||
|
||||
|
||||
else if (event.getEntityType() == EntityType.CAVE_SPIDER)
|
||||
{
|
||||
drops.add(ItemStackFactory.Instance.CreateStack(Material.WEB, 2 + UtilMath.r(3)));
|
||||
drops.add(ItemStackFactory.Instance.CreateStack(Material.SPIDER_EYE, 1));
|
||||
drops.add(ItemStackFactory.Instance.CreateStack(Material.BONE, 6 + UtilMath.r(7)));
|
||||
}
|
||||
|
||||
|
||||
else if (event.getEntityType() == EntityType.CREEPER)
|
||||
{
|
||||
drops.add(ItemStackFactory.Instance.CreateStack(Material.COAL, 6 + UtilMath.r(13)));
|
||||
drops.add(ItemStackFactory.Instance.CreateStack(Material.BONE, 12 + UtilMath.r(13)));
|
||||
}
|
||||
|
||||
|
||||
else if (event.getEntityType() == EntityType.ENDERMAN)
|
||||
{
|
||||
drops.add(ItemStackFactory.Instance.CreateStack(Material.ENDER_PEARL, 1));
|
||||
drops.add(ItemStackFactory.Instance.CreateStack(Material.BONE, 12 + UtilMath.r(13)));
|
||||
}
|
||||
|
||||
|
||||
else if (event.getEntityType() == EntityType.GHAST)
|
||||
{
|
||||
drops.add(ItemStackFactory.Instance.CreateStack(Material.GHAST_TEAR, 1));
|
||||
@ -189,19 +189,19 @@ public class Creature extends MiniPlugin
|
||||
for (int i=0 ; i < 5 + UtilMath.r(11) ; i++)
|
||||
drops.add(ItemStackFactory.Instance.CreateStack(Material.EMERALD, 1));
|
||||
}
|
||||
|
||||
|
||||
else if (event.getEntityType() == EntityType.IRON_GOLEM)
|
||||
{
|
||||
drops.add(ItemStackFactory.Instance.CreateStack(Material.IRON_INGOT, 2 + UtilMath.r(3)));
|
||||
drops.add(ItemStackFactory.Instance.CreateStack(Material.BONE, 12 + UtilMath.r(13)));
|
||||
}
|
||||
|
||||
|
||||
else if (event.getEntityType() == EntityType.MAGMA_CUBE)
|
||||
{
|
||||
drops.add(ItemStackFactory.Instance.CreateStack(Material.MAGMA_CREAM, 1));
|
||||
drops.add(ItemStackFactory.Instance.CreateStack(Material.BONE, 1 + UtilMath.r(2)));
|
||||
}
|
||||
|
||||
|
||||
else if (event.getEntityType() == EntityType.PIG_ZOMBIE)
|
||||
{
|
||||
drops.add(ItemStackFactory.Instance.CreateStack(Material.GRILLED_PORK, 1 + UtilMath.r(2)));
|
||||
@ -210,12 +210,12 @@ public class Creature extends MiniPlugin
|
||||
drops.add(ItemStackFactory.Instance.CreateStack(Material.ARROW, 1 + UtilMath.r(12)));
|
||||
if (UtilMath.r(100) > 90) drops.add(ItemStackFactory.Instance.CreateStack(Material.GOLD_SWORD, 1));
|
||||
}
|
||||
|
||||
|
||||
else if (event.getEntityType() == EntityType.SILVERFISH)
|
||||
{
|
||||
drops.add(ItemStackFactory.Instance.CreateStack(Material.BONE, 1 + UtilMath.r(2)));
|
||||
}
|
||||
|
||||
|
||||
else if (event.getEntityType() == EntityType.SKELETON)
|
||||
{
|
||||
if (((Skeleton)event.getEntity()).getSkeletonType() == SkeletonType.NORMAL)
|
||||
@ -228,14 +228,14 @@ public class Creature extends MiniPlugin
|
||||
drops.add(ItemStackFactory.Instance.CreateStack(Material.ARROW, 4 + UtilMath.r(10)));
|
||||
drops.add(ItemStackFactory.Instance.CreateStack(Material.BONE, 12 + UtilMath.r(26)));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
else if (event.getEntityType() == EntityType.SLIME)
|
||||
{
|
||||
drops.add(ItemStackFactory.Instance.CreateStack(Material.BONE, 1 + UtilMath.r(2)));
|
||||
}
|
||||
|
||||
|
||||
else if (event.getEntityType() == EntityType.SPIDER)
|
||||
{
|
||||
drops.add(ItemStackFactory.Instance.CreateStack(Material.WEB, 2 + UtilMath.r(3)));
|
||||
@ -247,18 +247,18 @@ public class Creature extends MiniPlugin
|
||||
{
|
||||
event.getDrops().add(ItemStackFactory.Instance.CreateStack(Material.ROTTEN_FLESH, 1));
|
||||
drops.add(ItemStackFactory.Instance.CreateStack(Material.BONE, 6 + UtilMath.r(7)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@EventHandler
|
||||
public void CustomCreeperExplode(EntityExplodeEvent event)
|
||||
{
|
||||
if (_disableCustom)
|
||||
return;
|
||||
|
||||
|
||||
if (!(event.getEntity() instanceof Creeper))
|
||||
return;
|
||||
|
||||
|
||||
HashMap<Player, Double> players = UtilPlayer.getInRadius(event.getEntity().getLocation(), 8d);
|
||||
for (Player cur : players.keySet())
|
||||
{
|
||||
@ -267,7 +267,7 @@ public class Creature extends MiniPlugin
|
||||
}
|
||||
}
|
||||
|
||||
public void SetForce(boolean force)
|
||||
public void SetForce(boolean force)
|
||||
{
|
||||
_spawnForce = force;
|
||||
}
|
||||
@ -276,26 +276,26 @@ public class Creature extends MiniPlugin
|
||||
{
|
||||
if (ent == null)
|
||||
return;
|
||||
|
||||
|
||||
UtilEnt.GetEntityNames().put(ent, name);
|
||||
}
|
||||
|
||||
|
||||
@EventHandler
|
||||
public void UpdateEntityNames(UpdateEvent event)
|
||||
{
|
||||
if (event.getType() != UpdateType.FAST)
|
||||
return;
|
||||
|
||||
|
||||
HashSet<Entity> remove = new HashSet<Entity>();
|
||||
|
||||
|
||||
for (Entity ent : UtilEnt.GetEntityNames().keySet())
|
||||
if (ent.isDead() || !ent.isValid())
|
||||
remove.add(ent);
|
||||
|
||||
|
||||
for (Entity ent : remove)
|
||||
UtilEnt.GetEntityNames().remove(ent);
|
||||
}
|
||||
|
||||
|
||||
public void SetDisableCustomDrops(boolean var)
|
||||
{
|
||||
_disableCustom = var;
|
||||
|
@ -1,10 +1,10 @@
|
||||
package mineplex.core.npc;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.Chunk;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.craftbukkit.v1_7_R4.entity.CraftCreature;
|
||||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.entity.LivingEntity;
|
||||
import net.minecraft.server.v1_7_R4.EntityCreature;
|
||||
|
||||
@ -18,6 +18,8 @@ public class Npc
|
||||
private LivingEntity _entity;
|
||||
private int _failedAttempts = 0;
|
||||
private boolean _returning = false;
|
||||
private final String[] _info;
|
||||
private final Double _infoRadiusSquared;
|
||||
|
||||
public Npc(NpcManager npcManager, NpcsRecord databaseRecord)
|
||||
{
|
||||
@ -25,6 +27,25 @@ public class Npc
|
||||
_databaseRecord = databaseRecord;
|
||||
|
||||
_location = new Location(Bukkit.getWorld(getDatabaseRecord().getWorld()), getDatabaseRecord().getX(), getDatabaseRecord().getY(), getDatabaseRecord().getZ());
|
||||
|
||||
if (getDatabaseRecord().getInfo() == null)
|
||||
_info = null;
|
||||
else
|
||||
{
|
||||
_info = getDatabaseRecord().getInfo().split("\\r?\\n");
|
||||
|
||||
for (int i = 0; i < _info.length; i++)
|
||||
{
|
||||
for (ChatColor color : ChatColor.values())
|
||||
_info[i] = _info[i].replace("(" + color.name().toLowerCase() + ")", color.toString());
|
||||
_info[i] = ChatColor.translateAlternateColorCodes('&', _info[i]);
|
||||
}
|
||||
}
|
||||
|
||||
if (getDatabaseRecord().getInfoRadius() == null)
|
||||
_infoRadiusSquared = null;
|
||||
else
|
||||
_infoRadiusSquared = getDatabaseRecord().getInfoRadius() * getDatabaseRecord().getInfoRadius();
|
||||
}
|
||||
|
||||
public void setEntity(LivingEntity entity)
|
||||
@ -119,4 +140,14 @@ public class Npc
|
||||
{
|
||||
return getLocation().getChunk();
|
||||
}
|
||||
|
||||
public String[] getInfo()
|
||||
{
|
||||
return _info;
|
||||
}
|
||||
|
||||
public Double getInfoRadiusSquared()
|
||||
{
|
||||
return _infoRadiusSquared;
|
||||
}
|
||||
}
|
||||
|
@ -38,6 +38,7 @@ import org.bukkit.event.entity.EntityDamageEvent;
|
||||
import org.bukkit.event.entity.EntityDeathEvent;
|
||||
import org.bukkit.event.entity.EntityTargetEvent;
|
||||
import org.bukkit.event.player.PlayerInteractEntityEvent;
|
||||
import org.bukkit.event.player.PlayerMoveEvent;
|
||||
import org.bukkit.event.world.ChunkLoadEvent;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
@ -102,6 +103,8 @@ public class NpcManager extends MiniPlugin
|
||||
final Map<UUID, Npc> _npcMap = new HashMap<>();
|
||||
private final Set<UUID> _npcDeletingPlayers = new HashSet<>();
|
||||
private Connection _connection;
|
||||
private final Map<UUID, Long> _nearNpcMessageTimes = new HashMap<>();
|
||||
private final Map<UUID, Long> _clickNpcMessageTimes = new HashMap<>();
|
||||
|
||||
protected Connection getConnection()
|
||||
{
|
||||
@ -611,6 +614,92 @@ public class NpcManager extends MiniPlugin
|
||||
npc.setEntity(null);
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void onUpdateNpcMessage(UpdateEvent event)
|
||||
{
|
||||
if (event.getType() != UpdateType.TICK)
|
||||
return;
|
||||
|
||||
long now = System.currentTimeMillis();
|
||||
|
||||
for (Player player : Bukkit.getOnlinePlayers())
|
||||
{
|
||||
for (Npc npc : _npcs)
|
||||
{
|
||||
if (npc.getInfo() == null)
|
||||
continue;
|
||||
|
||||
if (npc.getInfoRadiusSquared() == null)
|
||||
continue;
|
||||
|
||||
if (npc.getDatabaseRecord().getInfoDelay() == null)
|
||||
continue;
|
||||
|
||||
if (npc.getEntity() == null)
|
||||
continue;
|
||||
|
||||
if (npc.getEntity().getWorld() != player.getWorld())
|
||||
continue;
|
||||
|
||||
if (npc.getEntity().getLocation().distanceSquared(player.getLocation()) > npc.getInfoRadiusSquared())
|
||||
continue;
|
||||
|
||||
Long last = _nearNpcMessageTimes.get(player.getUniqueId());
|
||||
if (last != null && last + npc.getDatabaseRecord().getInfoDelay() > now)
|
||||
continue;
|
||||
|
||||
player.sendMessage(npc.getInfo());
|
||||
_nearNpcMessageTimes.put(player.getUniqueId(), now);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void onNpcInteract(PlayerInteractEntityEvent event)
|
||||
{
|
||||
Npc npc = getNpcByEntity(event.getRightClicked());
|
||||
if (npc == null)
|
||||
return;
|
||||
|
||||
if (npc.getInfo() == null)
|
||||
return;
|
||||
|
||||
long now = System.currentTimeMillis();
|
||||
|
||||
Long last = _clickNpcMessageTimes.get(event.getPlayer().getUniqueId());
|
||||
if (last != null && last + npc.getDatabaseRecord().getInfoDelay() > now)
|
||||
return;
|
||||
|
||||
event.getPlayer().sendMessage(npc.getInfo());
|
||||
_clickNpcMessageTimes.put(event.getPlayer().getUniqueId(), now);
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void onNpcDamage(EntityDamageByEntityEvent event)
|
||||
{
|
||||
if (!(event.getDamager() instanceof Player))
|
||||
return;
|
||||
|
||||
Player player = (Player) event.getDamager();
|
||||
|
||||
Npc npc = getNpcByEntity(event.getEntity());
|
||||
if (npc == null)
|
||||
return;
|
||||
|
||||
if (npc.getInfo() == null)
|
||||
return;
|
||||
|
||||
long now = System.currentTimeMillis();
|
||||
|
||||
Long last = _clickNpcMessageTimes.get(player.getUniqueId());
|
||||
if (last != null && last + npc.getDatabaseRecord().getInfoDelay() > now)
|
||||
return;
|
||||
|
||||
player.sendMessage(npc.getInfo());
|
||||
|
||||
_clickNpcMessageTimes.put(player.getUniqueId(), now);
|
||||
}
|
||||
|
||||
public String getServerName()
|
||||
{
|
||||
String serverName = GetPlugin().getClass().getSimpleName();
|
||||
|
@ -11,7 +11,7 @@ package mineplex.database;
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class Account extends org.jooq.impl.SchemaImpl implements java.io.Serializable, java.lang.Cloneable {
|
||||
|
||||
private static final long serialVersionUID = 163654509;
|
||||
private static final long serialVersionUID = 1357303848;
|
||||
|
||||
/**
|
||||
* The singleton instance of <code>Account</code>
|
||||
@ -42,7 +42,6 @@ public class Account extends org.jooq.impl.SchemaImpl implements java.io.Seriali
|
||||
mineplex.database.tables.AccountPreferences.accountPreferences,
|
||||
mineplex.database.tables.Accounts.accounts,
|
||||
mineplex.database.tables.AccountStats.accountStats,
|
||||
mineplex.database.tables.CurrencyTransactionLog.currencyTransactionLog,
|
||||
mineplex.database.tables.GamePlayers.gamePlayers,
|
||||
mineplex.database.tables.Games.games,
|
||||
mineplex.database.tables.ItemCategories.itemCategories,
|
||||
|
@ -26,7 +26,6 @@ public class Keys {
|
||||
public static final org.jooq.Identity<mineplex.database.tables.records.AccountPreferencesRecord, java.lang.Integer> IDENTITY_accountPreferences = Identities0.IDENTITY_accountPreferences;
|
||||
public static final org.jooq.Identity<mineplex.database.tables.records.AccountsRecord, java.lang.Integer> IDENTITY_accounts = Identities0.IDENTITY_accounts;
|
||||
public static final org.jooq.Identity<mineplex.database.tables.records.AccountStatsRecord, java.lang.Integer> IDENTITY_accountStats = Identities0.IDENTITY_accountStats;
|
||||
public static final org.jooq.Identity<mineplex.database.tables.records.CurrencyTransactionLogRecord, java.lang.Integer> IDENTITY_currencyTransactionLog = Identities0.IDENTITY_currencyTransactionLog;
|
||||
public static final org.jooq.Identity<mineplex.database.tables.records.GamePlayersRecord, java.lang.Integer> IDENTITY_gamePlayers = Identities0.IDENTITY_gamePlayers;
|
||||
public static final org.jooq.Identity<mineplex.database.tables.records.GamesRecord, java.lang.Integer> IDENTITY_games = Identities0.IDENTITY_games;
|
||||
public static final org.jooq.Identity<mineplex.database.tables.records.ItemCategoriesRecord, java.lang.Integer> IDENTITY_itemCategories = Identities0.IDENTITY_itemCategories;
|
||||
@ -57,7 +56,6 @@ public class Keys {
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountsRecord> KEY_accounts_uuidIndex = UniqueKeys0.KEY_accounts_uuidIndex;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountStatsRecord> KEY_accountStats_PRIMARY = UniqueKeys0.KEY_accountStats_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountStatsRecord> KEY_accountStats_accountStatIndex = UniqueKeys0.KEY_accountStats_accountStatIndex;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.CurrencyTransactionLogRecord> KEY_currencyTransactionLog_PRIMARY = UniqueKeys0.KEY_currencyTransactionLog_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.GamePlayersRecord> KEY_gamePlayers_PRIMARY = UniqueKeys0.KEY_gamePlayers_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.GamesRecord> KEY_games_PRIMARY = UniqueKeys0.KEY_games_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ItemCategoriesRecord> KEY_itemCategories_PRIMARY = UniqueKeys0.KEY_itemCategories_PRIMARY;
|
||||
@ -87,7 +85,6 @@ public class Keys {
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountPollsRecord, mineplex.database.tables.records.PollsRecord> accountPolls_ibfk_2 = ForeignKeys0.accountPolls_ibfk_2;
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountStatsRecord, mineplex.database.tables.records.AccountsRecord> accountStats_ibfk_1 = ForeignKeys0.accountStats_ibfk_1;
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountStatsRecord, mineplex.database.tables.records.StatsRecord> accountStats_ibfk_2 = ForeignKeys0.accountStats_ibfk_2;
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.CurrencyTransactionLogRecord, mineplex.database.tables.records.AccountsRecord> FK_currencyTransactionLog_accounts = ForeignKeys0.FK_currencyTransactionLog_accounts;
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.GamePlayersRecord, mineplex.database.tables.records.GamesRecord> FK_gamePlayers_games = ForeignKeys0.FK_gamePlayers_games;
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.GamePlayersRecord, mineplex.database.tables.records.AccountsRecord> FK_gamePlayers_accounts = ForeignKeys0.FK_gamePlayers_accounts;
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.ItemsRecord, mineplex.database.tables.records.ItemCategoriesRecord> items_ibfk_1 = ForeignKeys0.items_ibfk_1;
|
||||
@ -107,7 +104,6 @@ public class Keys {
|
||||
public static org.jooq.Identity<mineplex.database.tables.records.AccountPreferencesRecord, java.lang.Integer> IDENTITY_accountPreferences = createIdentity(mineplex.database.tables.AccountPreferences.accountPreferences, mineplex.database.tables.AccountPreferences.accountPreferences.id);
|
||||
public static org.jooq.Identity<mineplex.database.tables.records.AccountsRecord, java.lang.Integer> IDENTITY_accounts = createIdentity(mineplex.database.tables.Accounts.accounts, mineplex.database.tables.Accounts.accounts.id);
|
||||
public static org.jooq.Identity<mineplex.database.tables.records.AccountStatsRecord, java.lang.Integer> IDENTITY_accountStats = createIdentity(mineplex.database.tables.AccountStats.accountStats, mineplex.database.tables.AccountStats.accountStats.id);
|
||||
public static org.jooq.Identity<mineplex.database.tables.records.CurrencyTransactionLogRecord, java.lang.Integer> IDENTITY_currencyTransactionLog = createIdentity(mineplex.database.tables.CurrencyTransactionLog.currencyTransactionLog, mineplex.database.tables.CurrencyTransactionLog.currencyTransactionLog.id);
|
||||
public static org.jooq.Identity<mineplex.database.tables.records.GamePlayersRecord, java.lang.Integer> IDENTITY_gamePlayers = createIdentity(mineplex.database.tables.GamePlayers.gamePlayers, mineplex.database.tables.GamePlayers.gamePlayers.id);
|
||||
public static org.jooq.Identity<mineplex.database.tables.records.GamesRecord, java.lang.Integer> IDENTITY_games = createIdentity(mineplex.database.tables.Games.games, mineplex.database.tables.Games.games.id);
|
||||
public static org.jooq.Identity<mineplex.database.tables.records.ItemCategoriesRecord, java.lang.Integer> IDENTITY_itemCategories = createIdentity(mineplex.database.tables.ItemCategories.itemCategories, mineplex.database.tables.ItemCategories.itemCategories.id);
|
||||
@ -136,7 +132,6 @@ public class Keys {
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountsRecord> KEY_accounts_uuidIndex = createUniqueKey(mineplex.database.tables.Accounts.accounts, mineplex.database.tables.Accounts.accounts.uuid);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountStatsRecord> KEY_accountStats_PRIMARY = createUniqueKey(mineplex.database.tables.AccountStats.accountStats, mineplex.database.tables.AccountStats.accountStats.id);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountStatsRecord> KEY_accountStats_accountStatIndex = createUniqueKey(mineplex.database.tables.AccountStats.accountStats, mineplex.database.tables.AccountStats.accountStats.accountId, mineplex.database.tables.AccountStats.accountStats.statId);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.CurrencyTransactionLogRecord> KEY_currencyTransactionLog_PRIMARY = createUniqueKey(mineplex.database.tables.CurrencyTransactionLog.currencyTransactionLog, mineplex.database.tables.CurrencyTransactionLog.currencyTransactionLog.id);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.GamePlayersRecord> KEY_gamePlayers_PRIMARY = createUniqueKey(mineplex.database.tables.GamePlayers.gamePlayers, mineplex.database.tables.GamePlayers.gamePlayers.id);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.GamesRecord> KEY_games_PRIMARY = createUniqueKey(mineplex.database.tables.Games.games, mineplex.database.tables.Games.games.id);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ItemCategoriesRecord> KEY_itemCategories_PRIMARY = createUniqueKey(mineplex.database.tables.ItemCategories.itemCategories, mineplex.database.tables.ItemCategories.itemCategories.id);
|
||||
@ -164,7 +159,6 @@ public class Keys {
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountPollsRecord, mineplex.database.tables.records.PollsRecord> accountPolls_ibfk_2 = createForeignKey(mineplex.database.Keys.KEY_polls_PRIMARY, mineplex.database.tables.AccountPolls.accountPolls, mineplex.database.tables.AccountPolls.accountPolls.pollId);
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountStatsRecord, mineplex.database.tables.records.AccountsRecord> accountStats_ibfk_1 = createForeignKey(mineplex.database.Keys.KEY_accounts_PRIMARY, mineplex.database.tables.AccountStats.accountStats, mineplex.database.tables.AccountStats.accountStats.accountId);
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountStatsRecord, mineplex.database.tables.records.StatsRecord> accountStats_ibfk_2 = createForeignKey(mineplex.database.Keys.KEY_stats_PRIMARY, mineplex.database.tables.AccountStats.accountStats, mineplex.database.tables.AccountStats.accountStats.statId);
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.CurrencyTransactionLogRecord, mineplex.database.tables.records.AccountsRecord> FK_currencyTransactionLog_accounts = createForeignKey(mineplex.database.Keys.KEY_accounts_PRIMARY, mineplex.database.tables.CurrencyTransactionLog.currencyTransactionLog, mineplex.database.tables.CurrencyTransactionLog.currencyTransactionLog.accountId);
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.GamePlayersRecord, mineplex.database.tables.records.GamesRecord> FK_gamePlayers_games = createForeignKey(mineplex.database.Keys.KEY_games_PRIMARY, mineplex.database.tables.GamePlayers.gamePlayers, mineplex.database.tables.GamePlayers.gamePlayers.gameId);
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.GamePlayersRecord, mineplex.database.tables.records.AccountsRecord> FK_gamePlayers_accounts = createForeignKey(mineplex.database.Keys.KEY_accounts_PRIMARY, mineplex.database.tables.GamePlayers.gamePlayers, mineplex.database.tables.GamePlayers.gamePlayers.accountId);
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.ItemsRecord, mineplex.database.tables.records.ItemCategoriesRecord> items_ibfk_1 = createForeignKey(mineplex.database.Keys.KEY_itemCategories_PRIMARY, mineplex.database.tables.Items.items, mineplex.database.tables.Items.items.categoryId);
|
||||
|
@ -53,11 +53,6 @@ public class Tables {
|
||||
*/
|
||||
public static final mineplex.database.tables.AccountStats accountStats = mineplex.database.tables.AccountStats.accountStats;
|
||||
|
||||
/**
|
||||
* The table Account.currencyTransactionLog
|
||||
*/
|
||||
public static final mineplex.database.tables.CurrencyTransactionLog currencyTransactionLog = mineplex.database.tables.CurrencyTransactionLog.currencyTransactionLog;
|
||||
|
||||
/**
|
||||
* The table Account.gamePlayers
|
||||
*/
|
||||
|
@ -1,127 +0,0 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package mineplex.database.tables;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.2" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class CurrencyTransactionLog extends org.jooq.impl.TableImpl<mineplex.database.tables.records.CurrencyTransactionLogRecord> implements java.io.Serializable, java.lang.Cloneable {
|
||||
|
||||
private static final long serialVersionUID = 1764100855;
|
||||
|
||||
/**
|
||||
* The singleton instance of <code>Account.currencyTransactionLog</code>
|
||||
*/
|
||||
public static final mineplex.database.tables.CurrencyTransactionLog currencyTransactionLog = new mineplex.database.tables.CurrencyTransactionLog();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Class<mineplex.database.tables.records.CurrencyTransactionLogRecord> getRecordType() {
|
||||
return mineplex.database.tables.records.CurrencyTransactionLogRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>Account.currencyTransactionLog.id</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.CurrencyTransactionLogRecord, java.lang.Integer> id = createField("id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.currencyTransactionLog.accountId</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.CurrencyTransactionLogRecord, java.lang.Integer> accountId = createField("accountId", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.currencyTransactionLog.currencyType</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.CurrencyTransactionLogRecord, java.lang.Integer> currencyType = createField("currencyType", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.currencyTransactionLog.change</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.CurrencyTransactionLogRecord, java.lang.Integer> change = createField("change", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.currencyTransactionLog.total</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.CurrencyTransactionLogRecord, java.lang.Integer> total = createField("total", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.currencyTransactionLog.timestamp</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.CurrencyTransactionLogRecord, java.sql.Timestamp> timestamp = createField("timestamp", org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false).defaulted(true), this, "");
|
||||
|
||||
/**
|
||||
* Create a <code>Account.currencyTransactionLog</code> table reference
|
||||
*/
|
||||
public CurrencyTransactionLog() {
|
||||
this("currencyTransactionLog", null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>Account.currencyTransactionLog</code> table reference
|
||||
*/
|
||||
public CurrencyTransactionLog(java.lang.String alias) {
|
||||
this(alias, mineplex.database.tables.CurrencyTransactionLog.currencyTransactionLog);
|
||||
}
|
||||
|
||||
private CurrencyTransactionLog(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.CurrencyTransactionLogRecord> aliased) {
|
||||
this(alias, aliased, null);
|
||||
}
|
||||
|
||||
private CurrencyTransactionLog(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.CurrencyTransactionLogRecord> aliased, org.jooq.Field<?>[] parameters) {
|
||||
super(alias, mineplex.database.Account.Account, aliased, parameters, "");
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Identity<mineplex.database.tables.records.CurrencyTransactionLogRecord, java.lang.Integer> getIdentity() {
|
||||
return mineplex.database.Keys.IDENTITY_currencyTransactionLog;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.UniqueKey<mineplex.database.tables.records.CurrencyTransactionLogRecord> getPrimaryKey() {
|
||||
return mineplex.database.Keys.KEY_currencyTransactionLog_PRIMARY;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.util.List<org.jooq.UniqueKey<mineplex.database.tables.records.CurrencyTransactionLogRecord>> getKeys() {
|
||||
return java.util.Arrays.<org.jooq.UniqueKey<mineplex.database.tables.records.CurrencyTransactionLogRecord>>asList(mineplex.database.Keys.KEY_currencyTransactionLog_PRIMARY);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.util.List<org.jooq.ForeignKey<mineplex.database.tables.records.CurrencyTransactionLogRecord, ?>> getReferences() {
|
||||
return java.util.Arrays.<org.jooq.ForeignKey<mineplex.database.tables.records.CurrencyTransactionLogRecord, ?>>asList(mineplex.database.Keys.FK_currencyTransactionLog_accounts);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public mineplex.database.tables.CurrencyTransactionLog as(java.lang.String alias) {
|
||||
return new mineplex.database.tables.CurrencyTransactionLog(alias, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
public mineplex.database.tables.CurrencyTransactionLog rename(java.lang.String name) {
|
||||
return new mineplex.database.tables.CurrencyTransactionLog(name, null);
|
||||
}
|
||||
}
|
@ -11,7 +11,7 @@ package mineplex.database.tables;
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class Npcs extends org.jooq.impl.TableImpl<mineplex.database.tables.records.NpcsRecord> implements java.io.Serializable, java.lang.Cloneable {
|
||||
|
||||
private static final long serialVersionUID = -1554338732;
|
||||
private static final long serialVersionUID = 2136912597;
|
||||
|
||||
/**
|
||||
* The singleton instance of <code>Account.npcs</code>
|
||||
@ -39,7 +39,7 @@ public class Npcs extends org.jooq.impl.TableImpl<mineplex.database.tables.recor
|
||||
/**
|
||||
* The column <code>Account.npcs.name</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.NpcsRecord, java.lang.String> name = createField("name", org.jooq.impl.SQLDataType.VARCHAR.length(50), this, "");
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.NpcsRecord, java.lang.String> name = createField("name", org.jooq.impl.SQLDataType.VARCHAR.length(255), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.npcs.world</code>.
|
||||
@ -69,12 +69,12 @@ public class Npcs extends org.jooq.impl.TableImpl<mineplex.database.tables.recor
|
||||
/**
|
||||
* The column <code>Account.npcs.entityType</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.NpcsRecord, java.lang.String> entityType = createField("entityType", org.jooq.impl.SQLDataType.VARCHAR.length(50).nullable(false), this, "");
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.NpcsRecord, java.lang.String> entityType = createField("entityType", org.jooq.impl.SQLDataType.VARCHAR.length(100).nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.npcs.entityMeta</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.NpcsRecord, java.lang.String> entityMeta = createField("entityMeta", org.jooq.impl.SQLDataType.VARCHAR.length(50), this, "");
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.NpcsRecord, java.lang.String> entityMeta = createField("entityMeta", org.jooq.impl.SQLDataType.VARCHAR.length(100), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.npcs.adult</code>.
|
||||
@ -106,6 +106,21 @@ public class Npcs extends org.jooq.impl.TableImpl<mineplex.database.tables.recor
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.NpcsRecord, java.lang.String> inHand = createField("inHand", org.jooq.impl.SQLDataType.CLOB.length(65535), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.npcs.info</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.NpcsRecord, java.lang.String> info = createField("info", org.jooq.impl.SQLDataType.CLOB.length(65535), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.npcs.infoRadius</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.NpcsRecord, java.lang.Double> infoRadius = createField("infoRadius", org.jooq.impl.SQLDataType.FLOAT, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.npcs.infoDelay</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.NpcsRecord, java.lang.Integer> infoDelay = createField("infoDelay", org.jooq.impl.SQLDataType.INTEGER, this, "");
|
||||
|
||||
/**
|
||||
* Create a <code>Account.npcs</code> table reference
|
||||
*/
|
||||
|
@ -1,314 +0,0 @@
|
||||
/**
|
||||
* This class is generated by jOOQ
|
||||
*/
|
||||
package mineplex.database.tables.records;
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.2" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class CurrencyTransactionLogRecord extends org.jooq.impl.UpdatableRecordImpl<mineplex.database.tables.records.CurrencyTransactionLogRecord> implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record6<java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer, java.sql.Timestamp> {
|
||||
|
||||
private static final long serialVersionUID = -1864583043;
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.currencyTransactionLog.id</code>.
|
||||
*/
|
||||
public void setId(java.lang.Integer value) {
|
||||
setValue(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.currencyTransactionLog.id</code>.
|
||||
*/
|
||||
public java.lang.Integer getId() {
|
||||
return (java.lang.Integer) getValue(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.currencyTransactionLog.accountId</code>.
|
||||
*/
|
||||
public void setAccountId(java.lang.Integer value) {
|
||||
setValue(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.currencyTransactionLog.accountId</code>.
|
||||
*/
|
||||
public java.lang.Integer getAccountId() {
|
||||
return (java.lang.Integer) getValue(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.currencyTransactionLog.currencyType</code>.
|
||||
*/
|
||||
public void setCurrencyType(java.lang.Integer value) {
|
||||
setValue(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.currencyTransactionLog.currencyType</code>.
|
||||
*/
|
||||
public java.lang.Integer getCurrencyType() {
|
||||
return (java.lang.Integer) getValue(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.currencyTransactionLog.change</code>.
|
||||
*/
|
||||
public void setChange(java.lang.Integer value) {
|
||||
setValue(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.currencyTransactionLog.change</code>.
|
||||
*/
|
||||
public java.lang.Integer getChange() {
|
||||
return (java.lang.Integer) getValue(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.currencyTransactionLog.total</code>.
|
||||
*/
|
||||
public void setTotal(java.lang.Integer value) {
|
||||
setValue(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.currencyTransactionLog.total</code>.
|
||||
*/
|
||||
public java.lang.Integer getTotal() {
|
||||
return (java.lang.Integer) getValue(4);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.currencyTransactionLog.timestamp</code>.
|
||||
*/
|
||||
public void setTimestamp(java.sql.Timestamp value) {
|
||||
setValue(5, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.currencyTransactionLog.timestamp</code>.
|
||||
*/
|
||||
public java.sql.Timestamp getTimestamp() {
|
||||
return (java.sql.Timestamp) getValue(5);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Record1<java.lang.Integer> key() {
|
||||
return (org.jooq.Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Record6 type implementation
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row6<java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer, java.sql.Timestamp> fieldsRow() {
|
||||
return (org.jooq.Row6) super.fieldsRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row6<java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer, java.sql.Timestamp> valuesRow() {
|
||||
return (org.jooq.Row6) super.valuesRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field1() {
|
||||
return mineplex.database.tables.CurrencyTransactionLog.currencyTransactionLog.id;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field2() {
|
||||
return mineplex.database.tables.CurrencyTransactionLog.currencyTransactionLog.accountId;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field3() {
|
||||
return mineplex.database.tables.CurrencyTransactionLog.currencyTransactionLog.currencyType;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field4() {
|
||||
return mineplex.database.tables.CurrencyTransactionLog.currencyTransactionLog.change;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field5() {
|
||||
return mineplex.database.tables.CurrencyTransactionLog.currencyTransactionLog.total;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.sql.Timestamp> field6() {
|
||||
return mineplex.database.tables.CurrencyTransactionLog.currencyTransactionLog.timestamp;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value1() {
|
||||
return getId();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value2() {
|
||||
return getAccountId();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value3() {
|
||||
return getCurrencyType();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value4() {
|
||||
return getChange();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value5() {
|
||||
return getTotal();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.sql.Timestamp value6() {
|
||||
return getTimestamp();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public CurrencyTransactionLogRecord value1(java.lang.Integer value) {
|
||||
setId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public CurrencyTransactionLogRecord value2(java.lang.Integer value) {
|
||||
setAccountId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public CurrencyTransactionLogRecord value3(java.lang.Integer value) {
|
||||
setCurrencyType(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public CurrencyTransactionLogRecord value4(java.lang.Integer value) {
|
||||
setChange(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public CurrencyTransactionLogRecord value5(java.lang.Integer value) {
|
||||
setTotal(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public CurrencyTransactionLogRecord value6(java.sql.Timestamp value) {
|
||||
setTimestamp(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public CurrencyTransactionLogRecord values(java.lang.Integer value1, java.lang.Integer value2, java.lang.Integer value3, java.lang.Integer value4, java.lang.Integer value5, java.sql.Timestamp value6) {
|
||||
return this;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached CurrencyTransactionLogRecord
|
||||
*/
|
||||
public CurrencyTransactionLogRecord() {
|
||||
super(mineplex.database.tables.CurrencyTransactionLog.currencyTransactionLog);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised CurrencyTransactionLogRecord
|
||||
*/
|
||||
public CurrencyTransactionLogRecord(java.lang.Integer id, java.lang.Integer accountId, java.lang.Integer currencyType, java.lang.Integer change, java.lang.Integer total, java.sql.Timestamp timestamp) {
|
||||
super(mineplex.database.tables.CurrencyTransactionLog.currencyTransactionLog);
|
||||
|
||||
setValue(0, id);
|
||||
setValue(1, accountId);
|
||||
setValue(2, currencyType);
|
||||
setValue(3, change);
|
||||
setValue(4, total);
|
||||
setValue(5, timestamp);
|
||||
}
|
||||
}
|
@ -9,9 +9,9 @@ package mineplex.database.tables.records;
|
||||
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.2" },
|
||||
comments = "This class is generated by jOOQ")
|
||||
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
|
||||
public class NpcsRecord extends org.jooq.impl.UpdatableRecordImpl<mineplex.database.tables.records.NpcsRecord> implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record16<java.lang.Integer, java.lang.String, java.lang.String, java.lang.String, java.lang.Double, java.lang.Double, java.lang.Double, java.lang.Double, java.lang.String, java.lang.String, java.lang.Boolean, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String> {
|
||||
public class NpcsRecord extends org.jooq.impl.UpdatableRecordImpl<mineplex.database.tables.records.NpcsRecord> implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record19<java.lang.Integer, java.lang.String, java.lang.String, java.lang.String, java.lang.Double, java.lang.Double, java.lang.Double, java.lang.Double, java.lang.String, java.lang.String, java.lang.Boolean, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.Double, java.lang.Integer> {
|
||||
|
||||
private static final long serialVersionUID = -1872308957;
|
||||
private static final long serialVersionUID = 503165424;
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.npcs.id</code>.
|
||||
@ -237,6 +237,48 @@ public class NpcsRecord extends org.jooq.impl.UpdatableRecordImpl<mineplex.datab
|
||||
return (java.lang.String) getValue(15);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.npcs.info</code>.
|
||||
*/
|
||||
public void setInfo(java.lang.String value) {
|
||||
setValue(16, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.npcs.info</code>.
|
||||
*/
|
||||
public java.lang.String getInfo() {
|
||||
return (java.lang.String) getValue(16);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.npcs.infoRadius</code>.
|
||||
*/
|
||||
public void setInfoRadius(java.lang.Double value) {
|
||||
setValue(17, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.npcs.infoRadius</code>.
|
||||
*/
|
||||
public java.lang.Double getInfoRadius() {
|
||||
return (java.lang.Double) getValue(17);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.npcs.infoDelay</code>.
|
||||
*/
|
||||
public void setInfoDelay(java.lang.Integer value) {
|
||||
setValue(18, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.npcs.infoDelay</code>.
|
||||
*/
|
||||
public java.lang.Integer getInfoDelay() {
|
||||
return (java.lang.Integer) getValue(18);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
@ -250,23 +292,23 @@ public class NpcsRecord extends org.jooq.impl.UpdatableRecordImpl<mineplex.datab
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Record16 type implementation
|
||||
// Record19 type implementation
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row16<java.lang.Integer, java.lang.String, java.lang.String, java.lang.String, java.lang.Double, java.lang.Double, java.lang.Double, java.lang.Double, java.lang.String, java.lang.String, java.lang.Boolean, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String> fieldsRow() {
|
||||
return (org.jooq.Row16) super.fieldsRow();
|
||||
public org.jooq.Row19<java.lang.Integer, java.lang.String, java.lang.String, java.lang.String, java.lang.Double, java.lang.Double, java.lang.Double, java.lang.Double, java.lang.String, java.lang.String, java.lang.Boolean, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.Double, java.lang.Integer> fieldsRow() {
|
||||
return (org.jooq.Row19) super.fieldsRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row16<java.lang.Integer, java.lang.String, java.lang.String, java.lang.String, java.lang.Double, java.lang.Double, java.lang.Double, java.lang.Double, java.lang.String, java.lang.String, java.lang.Boolean, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String> valuesRow() {
|
||||
return (org.jooq.Row16) super.valuesRow();
|
||||
public org.jooq.Row19<java.lang.Integer, java.lang.String, java.lang.String, java.lang.String, java.lang.Double, java.lang.Double, java.lang.Double, java.lang.Double, java.lang.String, java.lang.String, java.lang.Boolean, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.Double, java.lang.Integer> valuesRow() {
|
||||
return (org.jooq.Row19) super.valuesRow();
|
||||
}
|
||||
|
||||
/**
|
||||
@ -397,6 +439,30 @@ public class NpcsRecord extends org.jooq.impl.UpdatableRecordImpl<mineplex.datab
|
||||
return mineplex.database.tables.Npcs.npcs.inHand;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.String> field17() {
|
||||
return mineplex.database.tables.Npcs.npcs.info;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Double> field18() {
|
||||
return mineplex.database.tables.Npcs.npcs.infoRadius;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field19() {
|
||||
return mineplex.database.tables.Npcs.npcs.infoDelay;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@ -525,6 +591,30 @@ public class NpcsRecord extends org.jooq.impl.UpdatableRecordImpl<mineplex.datab
|
||||
return getInHand();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.String value17() {
|
||||
return getInfo();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Double value18() {
|
||||
return getInfoRadius();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value19() {
|
||||
return getInfoDelay();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@ -673,7 +763,34 @@ public class NpcsRecord extends org.jooq.impl.UpdatableRecordImpl<mineplex.datab
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public NpcsRecord values(java.lang.Integer value1, java.lang.String value2, java.lang.String value3, java.lang.String value4, java.lang.Double value5, java.lang.Double value6, java.lang.Double value7, java.lang.Double value8, java.lang.String value9, java.lang.String value10, java.lang.Boolean value11, java.lang.String value12, java.lang.String value13, java.lang.String value14, java.lang.String value15, java.lang.String value16) {
|
||||
public NpcsRecord value17(java.lang.String value) {
|
||||
setInfo(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public NpcsRecord value18(java.lang.Double value) {
|
||||
setInfoRadius(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public NpcsRecord value19(java.lang.Integer value) {
|
||||
setInfoDelay(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public NpcsRecord values(java.lang.Integer value1, java.lang.String value2, java.lang.String value3, java.lang.String value4, java.lang.Double value5, java.lang.Double value6, java.lang.Double value7, java.lang.Double value8, java.lang.String value9, java.lang.String value10, java.lang.Boolean value11, java.lang.String value12, java.lang.String value13, java.lang.String value14, java.lang.String value15, java.lang.String value16, java.lang.String value17, java.lang.Double value18, java.lang.Integer value19) {
|
||||
return this;
|
||||
}
|
||||
|
||||
@ -691,7 +808,7 @@ public class NpcsRecord extends org.jooq.impl.UpdatableRecordImpl<mineplex.datab
|
||||
/**
|
||||
* Create a detached, initialised NpcsRecord
|
||||
*/
|
||||
public NpcsRecord(java.lang.Integer id, java.lang.String server, java.lang.String name, java.lang.String world, java.lang.Double x, java.lang.Double y, java.lang.Double z, java.lang.Double radius, java.lang.String entityType, java.lang.String entityMeta, java.lang.Boolean adult, java.lang.String helmet, java.lang.String chestplate, java.lang.String leggings, java.lang.String boots, java.lang.String inHand) {
|
||||
public NpcsRecord(java.lang.Integer id, java.lang.String server, java.lang.String name, java.lang.String world, java.lang.Double x, java.lang.Double y, java.lang.Double z, java.lang.Double radius, java.lang.String entityType, java.lang.String entityMeta, java.lang.Boolean adult, java.lang.String helmet, java.lang.String chestplate, java.lang.String leggings, java.lang.String boots, java.lang.String inHand, java.lang.String info, java.lang.Double infoRadius, java.lang.Integer infoDelay) {
|
||||
super(mineplex.database.tables.Npcs.npcs);
|
||||
|
||||
setValue(0, id);
|
||||
@ -710,5 +827,8 @@ public class NpcsRecord extends org.jooq.impl.UpdatableRecordImpl<mineplex.datab
|
||||
setValue(13, leggings);
|
||||
setValue(14, boots);
|
||||
setValue(15, inHand);
|
||||
setValue(16, info);
|
||||
setValue(17, infoRadius);
|
||||
setValue(18, infoDelay);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user