Package be.seeseemelk.mockbukkit
Class MockUnsafeValues
java.lang.Object
be.seeseemelk.mockbukkit.MockUnsafeValues
- All Implemented Interfaces:
org.bukkit.UnsafeValues
@Deprecated(since="1.7.2")
public class MockUnsafeValues
extends Object
implements org.bukkit.UnsafeValues
Deprecated.
Mock implementation of an
UnsafeValues.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckSupported(@NotNull org.bukkit.plugin.PluginDescriptionFile pdf) Deprecated.@NotNull net.kyori.adventure.text.serializer.gson.GsonComponentSerializerDeprecated, for removal: This API element is subject to removal in a future version.@NotNull net.kyori.adventure.text.flattener.ComponentFlattenerDeprecated.@NotNull List<net.kyori.adventure.text.Component> computeTooltipLines(@NotNull org.bukkit.inventory.ItemStack itemStack, @NotNull io.papermc.paper.inventory.tooltip.TooltipContext tooltipContext, @Nullable org.bukkit.entity.Player player) Deprecated.@NotNull org.bukkit.damage.DamageSource.BuildercreateDamageSourceBuilder(@NotNull org.bukkit.damage.DamageType damageType) Deprecated.io.papermc.paper.plugin.lifecycle.event.LifecycleEventManager<org.bukkit.plugin.Plugin> createPluginLifecycleEventManager(org.bukkit.plugin.java.JavaPlugin javaPlugin, BooleanSupplier booleanSupplier) Deprecated.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 materialData, boolean itemPriority) Deprecated.org.bukkit.block.data.BlockDatafromLegacy(org.bukkit.Material material, byte data) Deprecated.Deprecated.<B extends org.bukkit.Keyed>
Bget(org.bukkit.Registry<B> registry, org.bukkit.NamespacedKey namespacedKey) Deprecated.@NotNull org.bukkit.NamespacedKeygetBiomeKey(org.bukkit.RegionAccessor accessor, int x, int y, int z) Deprecated.@Nullable StringgetBlockTranslationKey(@NotNull org.bukkit.Material material) Deprecated.org.bukkit.inventory.CreativeCategorygetCreativeCategory(org.bukkit.Material material) Deprecated.@Nullable org.bukkit.damage.DamageEffectgetDamageEffect(@NotNull String key) 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.@Nullable org.bukkit.FeatureFlaggetFeatureFlag(@NotNull org.bukkit.NamespacedKey key) Deprecated.org.bukkit.potion.PotionType.InternalPotionDatagetInternalPotionData(org.bukkit.NamespacedKey key) Deprecated.@Nullable StringgetItemTranslationKey(@NotNull org.bukkit.Material material) Deprecated.@NotNull StringDeprecated.org.bukkit.MaterialgetMaterial(String material, int version) Deprecated.intDeprecated.@Nullable org.bukkit.ColorgetSpawnEggLayerColor(org.bukkit.entity.EntityType entityType, int i) Deprecated.getStatisticCriteriaKey(@NotNull org.bukkit.Statistic statistic) Deprecated.Deprecated.getTranslationKey(org.bukkit.attribute.Attribute attribute) Deprecated.@Nullable StringgetTranslationKey(@NotNull org.bukkit.entity.EntityType type) Deprecated.@Nullable StringgetTranslationKey(@NotNull org.bukkit.inventory.ItemStack itemStack) Deprecated.com.destroystokyo.paper.util.VersionFetcherDeprecated.@NotNull net.kyori.adventure.text.serializer.gson.GsonComponentSerializerDeprecated, for removal: This API element is subject to removal in a future version.booleanhasDefaultEntityAttributes(@NotNull org.bukkit.NamespacedKey entityKey) Deprecated.booleanisSupportedApiVersion(String apiVersion) Deprecated, for removal: This API element is subject to removal in a future version.booleanisValidRepairItemStack(@NotNull org.bukkit.inventory.ItemStack itemToBeRepaired, @NotNull org.bukkit.inventory.ItemStack repairMaterial) Deprecated.@NotNull net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializerDeprecated, for removal: This API element is subject to removal in a future version.org.bukkit.advancement.AdvancementloadAdvancement(org.bukkit.NamespacedKey key, String advancement) Deprecated.org.bukkit.inventory.ItemStackmodifyItemStack(org.bukkit.inventory.ItemStack stack, String arguments) Deprecated.intDeprecated.@NotNull net.kyori.adventure.text.serializer.plain.PlainComponentSerializerDeprecated, for removal: This API element is subject to removal in a future version.@NotNull net.kyori.adventure.text.serializer.plain.PlainTextComponentSerializerDeprecated, for removal: This API element is subject to removal in a future version.byte[]processClass(org.bukkit.plugin.PluginDescriptionFile pdf, String path, byte[] clazz) Deprecated.booleanremoveAdvancement(org.bukkit.NamespacedKey key) Deprecated.voidDeprecated.net.kyori.adventure.text.ComponentresolveWithContext(net.kyori.adventure.text.Component component, org.bukkit.command.CommandSender context, org.bukkit.entity.Entity scoreboardSubject, boolean bypassPermissions) Deprecated.byte[]serializeEntity(org.bukkit.entity.Entity entity) Deprecated.byte[]serializeItem(org.bukkit.inventory.ItemStack item) Deprecated.voidsetBiomeKey(org.bukkit.RegionAccessor accessor, int x, int y, int z, org.bukkit.NamespacedKey biomeKey) Deprecated.voidsetMinimumApiVersion(String minimumApiVersion) Deprecated.Sets the minimum api-version allowed.org.bukkit.MaterialtoLegacy(org.bukkit.Material material) Deprecated.
-
Constructor Details
-
MockUnsafeValues
public MockUnsafeValues()Deprecated.
-
-
Method Details
-
componentFlattener
@NotNull public @NotNull net.kyori.adventure.text.flattener.ComponentFlattener componentFlattener()Deprecated.- Specified by:
componentFlattenerin interfaceorg.bukkit.UnsafeValues
-
plainComponentSerializer
@Deprecated(forRemoval=true, since="1.18") @NotNull public @NotNull 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
@Deprecated(forRemoval=true, since="1.18") @NotNull public @NotNull net.kyori.adventure.text.serializer.plain.PlainTextComponentSerializer plainTextSerializer()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
plainTextSerializerin interfaceorg.bukkit.UnsafeValues
-
gsonComponentSerializer
@Deprecated(forRemoval=true, since="1.18") @NotNull public @NotNull net.kyori.adventure.text.serializer.gson.GsonComponentSerializer gsonComponentSerializer()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
gsonComponentSerializerin interfaceorg.bukkit.UnsafeValues
-
colorDownsamplingGsonComponentSerializer
@Deprecated(forRemoval=true, since="1.18") @NotNull public @NotNull net.kyori.adventure.text.serializer.gson.GsonComponentSerializer colorDownsamplingGsonComponentSerializer()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
colorDownsamplingGsonComponentSerializerin interfaceorg.bukkit.UnsafeValues
-
legacyComponentSerializer
@Deprecated(forRemoval=true, since="1.18") @NotNull public @NotNull net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer legacyComponentSerializer()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
legacyComponentSerializerin interfaceorg.bukkit.UnsafeValues
-
resolveWithContext
public net.kyori.adventure.text.Component resolveWithContext(net.kyori.adventure.text.Component component, org.bukkit.command.CommandSender context, org.bukkit.entity.Entity scoreboardSubject, boolean bypassPermissions) throws IOException Deprecated.- Specified by:
resolveWithContextin interfaceorg.bukkit.UnsafeValues- Throws:
IOException
-
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 materialData, 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(@NotNull @NotNull 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, for removal: This API element is subject to removal in a future version.- 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
-
getBlockTranslationKey
@Nullable public @Nullable String getBlockTranslationKey(@NotNull @NotNull org.bukkit.Material material) Deprecated.- Specified by:
getBlockTranslationKeyin interfaceorg.bukkit.UnsafeValues
-
getItemTranslationKey
@Nullable public @Nullable String getItemTranslationKey(@NotNull @NotNull org.bukkit.Material material) Deprecated.- Specified by:
getItemTranslationKeyin interfaceorg.bukkit.UnsafeValues
-
getTranslationKey
@Nullable public @Nullable String getTranslationKey(@NotNull @NotNull org.bukkit.entity.EntityType type) Deprecated.- Specified by:
getTranslationKeyin interfaceorg.bukkit.UnsafeValues
-
getTranslationKey
@Nullable public @Nullable String getTranslationKey(@NotNull @NotNull org.bukkit.inventory.ItemStack itemStack) Deprecated.- Specified by:
getTranslationKeyin interfaceorg.bukkit.UnsafeValues
-
getTranslationKey
Deprecated.- Specified by:
getTranslationKeyin interfaceorg.bukkit.UnsafeValues
-
getFeatureFlag
@Nullable public @Nullable org.bukkit.FeatureFlag getFeatureFlag(@NotNull @NotNull org.bukkit.NamespacedKey key) Deprecated.- Specified by:
getFeatureFlagin interfaceorg.bukkit.UnsafeValues
-
getInternalPotionData
public org.bukkit.potion.PotionType.InternalPotionData getInternalPotionData(org.bukkit.NamespacedKey key) Deprecated.- Specified by:
getInternalPotionDatain interfaceorg.bukkit.UnsafeValues
-
getDamageEffect
@Nullable public @Nullable org.bukkit.damage.DamageEffect getDamageEffect(@NotNull @NotNull String key) Deprecated.- Specified by:
getDamageEffectin interfaceorg.bukkit.UnsafeValues
-
createDamageSourceBuilder
public @NotNull org.bukkit.damage.DamageSource.Builder createDamageSourceBuilder(@NotNull @NotNull org.bukkit.damage.DamageType damageType) Deprecated.- Specified by:
createDamageSourceBuilderin interfaceorg.bukkit.UnsafeValues
-
get
Deprecated.- Specified by:
getin interfaceorg.bukkit.UnsafeValues
-
get
public <B extends org.bukkit.Keyed> B get(org.bukkit.Registry<B> registry, org.bukkit.NamespacedKey namespacedKey) Deprecated.- Specified by:
getin interfaceorg.bukkit.UnsafeValues
-
nextEntityId
public int nextEntityId()Deprecated.- Specified by:
nextEntityIdin interfaceorg.bukkit.UnsafeValues
-
getMainLevelName
Deprecated.- Specified by:
getMainLevelNamein 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
-
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
-
getBiomeKey
@NotNull public @NotNull org.bukkit.NamespacedKey getBiomeKey(org.bukkit.RegionAccessor accessor, int x, int y, int z) Deprecated.- Specified by:
getBiomeKeyin interfaceorg.bukkit.UnsafeValues
-
setBiomeKey
public void setBiomeKey(org.bukkit.RegionAccessor accessor, int x, int y, int z, org.bukkit.NamespacedKey biomeKey) Deprecated.- Specified by:
setBiomeKeyin interfaceorg.bukkit.UnsafeValues
-
getStatisticCriteriaKey
Deprecated.- Specified by:
getStatisticCriteriaKeyin interfaceorg.bukkit.UnsafeValues
-
getSpawnEggLayerColor
@Nullable public @Nullable org.bukkit.Color getSpawnEggLayerColor(org.bukkit.entity.EntityType entityType, int i) Deprecated.- Specified by:
getSpawnEggLayerColorin interfaceorg.bukkit.UnsafeValues
-
createPluginLifecycleEventManager
public io.papermc.paper.plugin.lifecycle.event.LifecycleEventManager<org.bukkit.plugin.Plugin> createPluginLifecycleEventManager(org.bukkit.plugin.java.JavaPlugin javaPlugin, BooleanSupplier booleanSupplier) Deprecated.- Specified by:
createPluginLifecycleEventManagerin interfaceorg.bukkit.UnsafeValues
-
computeTooltipLines
@NotNull public @NotNull List<net.kyori.adventure.text.Component> computeTooltipLines(@NotNull @NotNull org.bukkit.inventory.ItemStack itemStack, @NotNull @NotNull io.papermc.paper.inventory.tooltip.TooltipContext tooltipContext, @Nullable @Nullable org.bukkit.entity.Player player) Deprecated.- Specified by:
computeTooltipLinesin interfaceorg.bukkit.UnsafeValues
-
getMaterial
Deprecated.- Specified by:
getMaterialin interfaceorg.bukkit.UnsafeValues
-