Uses of Class
com.palmergames.bukkit.towny.object.TownyObject
Package
Description
-
Uses of TownyObject in com.palmergames.bukkit.towny
Modifier and TypeMethodDescriptionstatic List<net.kyori.adventure.text.Component>
TownyFormatter.getExtraFields
(TownyObject to) Returns a list of MetaData used in the StatusScreens.static String[]
TownyFormatter.getFormattedNames
(TownyObject[] objs) Returns an Array of names, using their Formatted (long) names, with ColourCodes translated.Modifier and TypeMethodDescriptionTownyFormatter.getFormattedTownyNames
(List<TownyObject> objs) Returns a list of names, with ColourCodes translated.static String
TownyFormatter.getFormattedTownyObjects
(String prefix, List<TownyObject> objectlist) Used to prefix, count and list the given object. -
Uses of TownyObject in com.palmergames.bukkit.towny.db
Modifier and TypeMethodDescriptionprotected final String
TownyDatabaseHandler.serializeMetadata
(TownyObject obj) -
Uses of TownyObject in com.palmergames.bukkit.towny.event
ModifierConstructorDescriptionTownyObjectFormattedNameEvent
(TownyObject object, String prefix, String postfix) -
Uses of TownyObject in com.palmergames.bukkit.towny.object
Modifier and TypeClassDescriptionclass
A class which represents the structure of objects that occupy areas or interactive managed sub-objects.class
class
An abstract class which defines the mechanics of groups in towny.class
class
class
class
class
Modifier and TypeMethodDescriptionboolean
AddonCommand.execute
(@NotNull org.bukkit.command.CommandSender sender, @NotNull String[] args, TownyObject object) Used when an AddonCommand should receive a TownyObject name as a preceding argument. -
Uses of TownyObject in com.palmergames.bukkit.towny.object.metadata
Modifier and TypeMethodDescriptionvoid
MetadataLoader.deserializeMetadata
(TownyObject object, String serializedMetadata) -
Uses of TownyObject in com.palmergames.bukkit.towny.utils
Modifier and TypeMethodDescriptionstatic void
MetaDataUtil.addNewBooleanMeta
(TownyObject townyObject, String key, boolean value, boolean save) Creates and adds a new BooleanDataField MetaData to a TownyObject, overriding any existing MetaData with the same key.static void
MetaDataUtil.addNewByteMeta
(TownyObject townyObject, String key, byte value, boolean save) Creates and adds a new ByteDataField MetaData to a TownyObject, overriding any existing MetaData with the same key.static void
MetaDataUtil.addNewDoubleMeta
(TownyObject townyObject, String key, double value, boolean save) Creates and adds a new DecimalDataField MetaData to a TownyObject, overriding any existing MetaData with the same key.static void
MetaDataUtil.addNewIntegerMeta
(TownyObject townyObject, String key, int value, boolean save) Creates and adds a new IntegerDataField MetaData to a TownyObject, overriding any existing MetaData with the same key.static void
MetaDataUtil.addNewLocationMeta
(TownyObject townyObject, String key, org.bukkit.Location value, boolean save) Creates and adds a new LocationDataField MetaData to a TownyObject, overriding any existing MetaData with the same key.static void
MetaDataUtil.addNewLongMeta
(TownyObject townyObject, String key, long value, boolean save) Creates and adds a new LongDataField MetaData to a TownyObject, overriding any existing MetaData with the same key.static void
MetaDataUtil.addNewMeta
(TownyObject townyObject, BooleanDataField bdf, boolean save) Adds a new BooleanDataField MetaData to a TownyObject, overriding any existing MetaData with the same key.static void
MetaDataUtil.addNewMeta
(TownyObject townyObject, ByteDataField bdf, boolean save) Adds a new ByteDataField MetaData to a TownyObject, overriding any existing MetaData with the same key.static void
MetaDataUtil.addNewMeta
(TownyObject townyObject, DecimalDataField ddf, boolean save) Adds a new DecimalDataField MetaData to a TownyObject, overriding any existing MetaData with the same key.static void
MetaDataUtil.addNewMeta
(TownyObject townyObject, IntegerDataField idf, boolean save) Adds a new IntegerDataField MetaData to a TownyObject, overriding any existing MetaData with the same key.static void
MetaDataUtil.addNewMeta
(TownyObject townyObject, LocationDataField ldf, boolean save) Adds a new LocationDataField MetaData to a TownyObject, overriding any existing MetaData with the same key.static void
MetaDataUtil.addNewMeta
(TownyObject townyObject, LongDataField ldf, boolean save) Adds a new LongDataField MetaData to a TownyObject, overriding any existing MetaData with the same key.static void
MetaDataUtil.addNewMeta
(TownyObject townyObject, StringDataField sdf, boolean save) Adds a new StringDataField MetaData to a TownyObject, overriding any existing MetaData with the same key.static void
MetaDataUtil.addNewStringMeta
(TownyObject townyObject, String key, String value, boolean save) Creates and adds a new StringDataField MetaData to a TownyObject, overriding any existing MetaData with the same key.static boolean
MetaDataUtil.getBoolean
(TownyObject townyObject, BooleanDataField bdf) Get a boolean from a TownyObject's metadata.static byte
MetaDataUtil.getByte
(TownyObject townyObject, ByteDataField bdf) Get a byte from a TownyObject's metadata.static double
MetaDataUtil.getDouble
(TownyObject townyObject, DecimalDataField ddf) Get a double from a TownyObject's metadata.static int
MetaDataUtil.getInt
(TownyObject townyObject, IntegerDataField idf) Get a int from a TownyObject's metadata.static @Nullable org.bukkit.Location
MetaDataUtil.getLocation
(TownyObject townyObject, LocationDataField ldf) Get a Location from a TownyObject's metadata.static long
MetaDataUtil.getLong
(TownyObject townyObject, LongDataField ldf) Get a long from a TownyObject's metadata.static String
MetaDataUtil.getString
(TownyObject townyObject, StringDataField sdf) Get a string from a TownyObject's metadata.static boolean
MetaDataUtil.hasMeta
(TownyObject townyObject, BooleanDataField bdf) Does the TownyObject have the BooleanDataField meta?static boolean
MetaDataUtil.hasMeta
(TownyObject townyObject, ByteDataField bdf) Does the TownyObject have the ByteDataField meta?static boolean
MetaDataUtil.hasMeta
(TownyObject townyObject, DecimalDataField ddf) Does the TownyObject have the DecimalDataField meta?static boolean
MetaDataUtil.hasMeta
(TownyObject townyObject, IntegerDataField idf) Does the TownyObject have the IntegerDataField meta?static boolean
MetaDataUtil.hasMeta
(TownyObject townyObject, LocationDataField ldf) Does the TownyObject have the LocationDataField meta?static boolean
MetaDataUtil.hasMeta
(TownyObject townyObject, LongDataField ldf) Does the TownyObject have the LongDataField meta?static boolean
MetaDataUtil.hasMeta
(TownyObject townyObject, StringDataField sdf) Does the TownyObject have the StringDataField meta?static boolean
MetaDataUtil.hasMeta
(TownyObject townyObject, String key) Does the TownyObject have meta stored with the given key?static void
SpawnUtil.sendToTownySpawn
(org.bukkit.entity.Player player, String[] split, TownyObject townyObject, String notAffordMSG, boolean outpost, boolean ignoreWarn, SpawnType spawnType) Central method used for /res, /t, /n, /ta spawn commands.static void
MetaDataUtil.setBoolean
(TownyObject townyObject, BooleanDataField bdf, boolean bool, boolean save) Sets a BooleanDataField metadata on a TownyObject, creating the metadata if it doesn't exist.static void
MetaDataUtil.setByte
(TownyObject townyObject, ByteDataField bdf, byte num, boolean save) Sets a ByteDataField metadata on a TownyObject, creating the metadata if it doesn't exist.static void
MetaDataUtil.setDouble
(TownyObject townyObject, DecimalDataField ddf, double num, boolean save) Sets a DecimalDataField metadata on a TownyObject, creating the metadata if it doesn't exist.static void
MetaDataUtil.setInt
(TownyObject townyObject, IntegerDataField idf, int num, boolean save) Sets a IntegerDataField metadata on a TownyObject, creating the metadata if it doesn't exist.static void
MetaDataUtil.setLocation
(TownyObject townyObject, LocationDataField ldf, org.bukkit.Location loc, boolean save) Sets a LocationDataField metadata on a TownyObject, creating the metadata if it doesn't exist.static void
MetaDataUtil.setLong
(TownyObject townyObject, LongDataField ldf, long num, boolean save) Sets a LongDataField metadata on a TownyObject, creating the metadata if it doesn't exist.static void
MetaDataUtil.setString
(TownyObject townyObject, StringDataField sdf, String string, boolean save) Sets a StringDataField metadata on a TownyObject, creating the metadata if it doesn't exist. -
Uses of TownyObject in com.palmergames.bukkit.util
Modifier and TypeMethodDescriptionstatic String
ChatTools.formatTitle
(TownyObject object) Formats a title for a TownyObject, taking into account that on servers with high max_name_length could end up breaking the math