Package be.seeseemelk.mockbukkit
Class MockUnsafeValues
java.lang.Object
be.seeseemelk.mockbukkit.MockUnsafeValues
- All Implemented Interfaces:
org.bukkit.UnsafeValues
Deprecated.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.kyori.adventure.text.serializer.gson.GsonComponentSerializerDeprecated.static final net.kyori.adventure.text.flattener.ComponentFlattenerDeprecated.static final net.kyori.adventure.text.serializer.gson.GsonComponentSerializerDeprecated.static final net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializerDeprecated.static final net.kyori.adventure.text.serializer.plain.PlainComponentSerializerDeprecated.static final net.kyori.adventure.text.serializer.plain.PlainTextComponentSerializerDeprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckSupported(org.bukkit.plugin.PluginDescriptionFile pdf) Deprecated.net.kyori.adventure.text.serializer.gson.GsonComponentSerializerDeprecated.net.kyori.adventure.text.flattener.ComponentFlattenerDeprecated.org.bukkit.entity.EntitydeserializeEntity(byte[] data, org.bukkit.World world) Deprecated.org.bukkit.entity.EntitydeserializeEntity(byte[] data, org.bukkit.World world, boolean preserveUUID) Deprecated.org.bukkit.inventory.ItemStackdeserializeItem(byte[] data) Deprecated.org.bukkit.MaterialfromLegacy(org.bukkit.Material material) Deprecated.org.bukkit.MaterialfromLegacy(org.bukkit.material.MaterialData material) Deprecated.org.bukkit.MaterialfromLegacy(org.bukkit.material.MaterialData material, boolean itemPriority) Deprecated.org.bukkit.block.data.BlockDatafromLegacy(org.bukkit.Material material, byte data) Deprecated.org.bukkit.inventory.CreativeCategorygetCreativeCategory(org.bukkit.Material material) Deprecated.intDeprecated.com.google.common.collect.Multimap<org.bukkit.attribute.Attribute,org.bukkit.attribute.AttributeModifier> getDefaultAttributeModifiers(org.bukkit.Material material, org.bukkit.inventory.EquipmentSlot slot) Deprecated.@NotNull org.bukkit.attribute.AttributablegetDefaultEntityAttributes(@NotNull org.bukkit.NamespacedKey entityKey) Deprecated.@NotNull com.google.common.collect.Multimap<org.bukkit.attribute.Attribute,org.bukkit.attribute.AttributeModifier> getItemAttributes(@NotNull org.bukkit.Material material, @NotNull org.bukkit.inventory.EquipmentSlot equipmentSlot) Deprecated.io.papermc.paper.inventory.ItemRaritygetItemRarity(org.bukkit.Material material) Deprecated.io.papermc.paper.inventory.ItemRaritygetItemStackRarity(org.bukkit.inventory.ItemStack itemStack) Deprecated.@NotNull StringDeprecated.org.bukkit.MaterialgetMaterial(String material, int version) Deprecated.intDeprecated.Deprecated.getTranslationKey(org.bukkit.block.Block block) Deprecated.getTranslationKey(org.bukkit.entity.EntityType type) Deprecated.getTranslationKey(org.bukkit.inventory.ItemStack itemStack) Deprecated.getTranslationKey(org.bukkit.Material mat) Deprecated.com.destroystokyo.paper.util.VersionFetcherDeprecated.net.kyori.adventure.text.serializer.gson.GsonComponentSerializerDeprecated.booleanhasDefaultEntityAttributes(@NotNull org.bukkit.NamespacedKey entityKey) Deprecated.booleanisCollidable(@NotNull org.bukkit.Material material) Deprecated.booleanisSupportedApiVersion(String apiVersion) Deprecated.booleanisValidRepairItemStack(@NotNull org.bukkit.inventory.ItemStack itemToBeRepaired, @NotNull org.bukkit.inventory.ItemStack repairMaterial) Deprecated.net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializerDeprecated.org.bukkit.advancement.AdvancementloadAdvancement(org.bukkit.NamespacedKey key, String advancement) Deprecated.org.bukkit.inventory.ItemStackmodifyItemStack(org.bukkit.inventory.ItemStack stack, String arguments) Deprecated.intDeprecated.net.kyori.adventure.text.serializer.plain.PlainComponentSerializerDeprecated, for removal: This API element is subject to removal in a future version.net.kyori.adventure.text.serializer.plain.PlainTextComponentSerializerDeprecated.byte[]processClass(org.bukkit.plugin.PluginDescriptionFile pdf, String path, byte[] clazz) Deprecated.<T extends org.bukkit.Keyed>
@NotNull org.bukkit.Registry<T>registryFor(Class<T> classOfT) Deprecated.booleanremoveAdvancement(org.bukkit.NamespacedKey key) Deprecated.voidDeprecated.byte[]serializeEntity(org.bukkit.entity.Entity entity) Deprecated.byte[]serializeItem(org.bukkit.inventory.ItemStack item) Deprecated.voidsetMinimumApiVersion(String minimumApiVersion) Deprecated.Sets the minimum api-version allowed.org.bukkit.MaterialtoLegacy(org.bukkit.Material material) Deprecated.
-
Field Details
-
FLATTENER
public static final net.kyori.adventure.text.flattener.ComponentFlattener FLATTENERDeprecated. -
LEGACY_SECTION_UXRC
public static final net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer LEGACY_SECTION_UXRCDeprecated. -
PLAIN
public static final net.kyori.adventure.text.serializer.plain.PlainComponentSerializer PLAINDeprecated. -
PLAIN_TEXT
public static final net.kyori.adventure.text.serializer.plain.PlainTextComponentSerializer PLAIN_TEXTDeprecated. -
GSON
public static final net.kyori.adventure.text.serializer.gson.GsonComponentSerializer GSONDeprecated. -
COLOR_DOWNSAMPLING_GSON
public static final net.kyori.adventure.text.serializer.gson.GsonComponentSerializer COLOR_DOWNSAMPLING_GSONDeprecated.
-
-
Constructor Details
-
MockUnsafeValues
public MockUnsafeValues()Deprecated.
-
-
Method Details
-
componentFlattener
public net.kyori.adventure.text.flattener.ComponentFlattener componentFlattener()Deprecated.- Specified by:
componentFlattenerin interfaceorg.bukkit.UnsafeValues
-
plainComponentSerializer
@Deprecated(forRemoval=true) public net.kyori.adventure.text.serializer.plain.PlainComponentSerializer plainComponentSerializer()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
plainComponentSerializerin interfaceorg.bukkit.UnsafeValues
-
plainTextSerializer
public net.kyori.adventure.text.serializer.plain.PlainTextComponentSerializer plainTextSerializer()Deprecated.- Specified by:
plainTextSerializerin interfaceorg.bukkit.UnsafeValues
-
gsonComponentSerializer
public net.kyori.adventure.text.serializer.gson.GsonComponentSerializer gsonComponentSerializer()Deprecated.- Specified by:
gsonComponentSerializerin interfaceorg.bukkit.UnsafeValues
-
colorDownsamplingGsonComponentSerializer
public net.kyori.adventure.text.serializer.gson.GsonComponentSerializer colorDownsamplingGsonComponentSerializer()Deprecated.- Specified by:
colorDownsamplingGsonComponentSerializerin interfaceorg.bukkit.UnsafeValues
-
legacyComponentSerializer
public net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer legacyComponentSerializer()Deprecated.- Specified by:
legacyComponentSerializerin interfaceorg.bukkit.UnsafeValues
-
reportTimings
public void reportTimings()Deprecated.- Specified by:
reportTimingsin interfaceorg.bukkit.UnsafeValues
-
toLegacy
public org.bukkit.Material toLegacy(org.bukkit.Material material) Deprecated.- Specified by:
toLegacyin interfaceorg.bukkit.UnsafeValues
-
fromLegacy
public org.bukkit.Material fromLegacy(org.bukkit.Material material) Deprecated.- Specified by:
fromLegacyin interfaceorg.bukkit.UnsafeValues
-
fromLegacy
public org.bukkit.Material fromLegacy(org.bukkit.material.MaterialData material) Deprecated.- Specified by:
fromLegacyin interfaceorg.bukkit.UnsafeValues
-
fromLegacy
public org.bukkit.Material fromLegacy(org.bukkit.material.MaterialData material, boolean itemPriority) Deprecated.- Specified by:
fromLegacyin interfaceorg.bukkit.UnsafeValues
-
fromLegacy
public org.bukkit.block.data.BlockData fromLegacy(org.bukkit.Material material, byte data) Deprecated.- Specified by:
fromLegacyin interfaceorg.bukkit.UnsafeValues
-
getDataVersion
public int getDataVersion()Deprecated.- Specified by:
getDataVersionin interfaceorg.bukkit.UnsafeValues
-
modifyItemStack
public org.bukkit.inventory.ItemStack modifyItemStack(org.bukkit.inventory.ItemStack stack, String arguments) Deprecated.- Specified by:
modifyItemStackin interfaceorg.bukkit.UnsafeValues
-
setMinimumApiVersion
Deprecated.Sets the minimum api-version allowed.- Parameters:
minimumApiVersion- The minimum API version to support.
-
checkSupported
public void checkSupported(org.bukkit.plugin.PluginDescriptionFile pdf) throws org.bukkit.plugin.InvalidPluginException Deprecated.- Specified by:
checkSupportedin interfaceorg.bukkit.UnsafeValues- Throws:
org.bukkit.plugin.InvalidPluginException
-
processClass
Deprecated.- Specified by:
processClassin interfaceorg.bukkit.UnsafeValues
-
loadAdvancement
public org.bukkit.advancement.Advancement loadAdvancement(org.bukkit.NamespacedKey key, String advancement) Deprecated.- Specified by:
loadAdvancementin interfaceorg.bukkit.UnsafeValues
-
removeAdvancement
public boolean removeAdvancement(org.bukkit.NamespacedKey key) Deprecated.- Specified by:
removeAdvancementin interfaceorg.bukkit.UnsafeValues
-
getDefaultAttributeModifiers
public com.google.common.collect.Multimap<org.bukkit.attribute.Attribute,org.bukkit.attribute.AttributeModifier> getDefaultAttributeModifiers(org.bukkit.Material material, org.bukkit.inventory.EquipmentSlot slot) Deprecated.- Specified by:
getDefaultAttributeModifiersin interfaceorg.bukkit.UnsafeValues
-
getCreativeCategory
public org.bukkit.inventory.CreativeCategory getCreativeCategory(org.bukkit.Material material) Deprecated.- Specified by:
getCreativeCategoryin interfaceorg.bukkit.UnsafeValues
-
getTimingsServerName
Deprecated.- Specified by:
getTimingsServerNamein interfaceorg.bukkit.UnsafeValues
-
getVersionFetcher
public com.destroystokyo.paper.util.VersionFetcher getVersionFetcher()Deprecated.- Specified by:
getVersionFetcherin interfaceorg.bukkit.UnsafeValues
-
isSupportedApiVersion
Deprecated.- Specified by:
isSupportedApiVersionin interfaceorg.bukkit.UnsafeValues
-
serializeItem
public byte[] serializeItem(org.bukkit.inventory.ItemStack item) Deprecated.- Specified by:
serializeItemin interfaceorg.bukkit.UnsafeValues
-
deserializeItem
public org.bukkit.inventory.ItemStack deserializeItem(byte[] data) Deprecated.- Specified by:
deserializeItemin interfaceorg.bukkit.UnsafeValues
-
serializeEntity
public byte[] serializeEntity(org.bukkit.entity.Entity entity) Deprecated.- Specified by:
serializeEntityin interfaceorg.bukkit.UnsafeValues
-
deserializeEntity
public org.bukkit.entity.Entity deserializeEntity(byte[] data, org.bukkit.World world) Deprecated.- Specified by:
deserializeEntityin interfaceorg.bukkit.UnsafeValues
-
deserializeEntity
public org.bukkit.entity.Entity deserializeEntity(byte[] data, org.bukkit.World world, boolean preserveUUID) Deprecated.- Specified by:
deserializeEntityin interfaceorg.bukkit.UnsafeValues
-
getTranslationKey
Deprecated.- Specified by:
getTranslationKeyin interfaceorg.bukkit.UnsafeValues
-
getTranslationKey
Deprecated.- Specified by:
getTranslationKeyin interfaceorg.bukkit.UnsafeValues
-
getTranslationKey
Deprecated.- Specified by:
getTranslationKeyin interfaceorg.bukkit.UnsafeValues
-
getTranslationKey
Deprecated.- Specified by:
getTranslationKeyin interfaceorg.bukkit.UnsafeValues
-
nextEntityId
public int nextEntityId()Deprecated.- Specified by:
nextEntityIdin interfaceorg.bukkit.UnsafeValues
-
registryFor
@NotNull public <T extends org.bukkit.Keyed> @NotNull org.bukkit.Registry<T> registryFor(Class<T> classOfT) Deprecated.- Specified by:
registryForin interfaceorg.bukkit.UnsafeValues
-
getMainLevelName
Deprecated.- Specified by:
getMainLevelNamein interfaceorg.bukkit.UnsafeValues
-
getItemRarity
public io.papermc.paper.inventory.ItemRarity getItemRarity(org.bukkit.Material material) Deprecated.- Specified by:
getItemRarityin interfaceorg.bukkit.UnsafeValues
-
getItemStackRarity
public io.papermc.paper.inventory.ItemRarity getItemStackRarity(org.bukkit.inventory.ItemStack itemStack) Deprecated.- Specified by:
getItemStackRarityin interfaceorg.bukkit.UnsafeValues
-
isValidRepairItemStack
public boolean isValidRepairItemStack(@NotNull @NotNull org.bukkit.inventory.ItemStack itemToBeRepaired, @NotNull @NotNull org.bukkit.inventory.ItemStack repairMaterial) Deprecated.- Specified by:
isValidRepairItemStackin interfaceorg.bukkit.UnsafeValues
-
getItemAttributes
@NotNull public @NotNull com.google.common.collect.Multimap<org.bukkit.attribute.Attribute,org.bukkit.attribute.AttributeModifier> getItemAttributes(@NotNull @NotNull org.bukkit.Material material, @NotNull @NotNull org.bukkit.inventory.EquipmentSlot equipmentSlot) Deprecated.- Specified by:
getItemAttributesin interfaceorg.bukkit.UnsafeValues
-
getProtocolVersion
public int getProtocolVersion()Deprecated.- Specified by:
getProtocolVersionin interfaceorg.bukkit.UnsafeValues
-
hasDefaultEntityAttributes
public boolean hasDefaultEntityAttributes(@NotNull @NotNull org.bukkit.NamespacedKey entityKey) Deprecated.- Specified by:
hasDefaultEntityAttributesin interfaceorg.bukkit.UnsafeValues
-
getDefaultEntityAttributes
@NotNull public @NotNull org.bukkit.attribute.Attributable getDefaultEntityAttributes(@NotNull @NotNull org.bukkit.NamespacedKey entityKey) Deprecated.- Specified by:
getDefaultEntityAttributesin interfaceorg.bukkit.UnsafeValues
-
isCollidable
public boolean isCollidable(@NotNull @NotNull org.bukkit.Material material) Deprecated.- Specified by:
isCollidablein interfaceorg.bukkit.UnsafeValues
-
getMaterial
Deprecated.- Specified by:
getMaterialin interfaceorg.bukkit.UnsafeValues
-