Package be.seeseemelk.mockbukkit
Class MockUnsafeValues
java.lang.Object
be.seeseemelk.mockbukkit.MockUnsafeValues
- All Implemented Interfaces:
UnsafeValues
Deprecated.
Mock implementation of an
UnsafeValues.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckSupported(@NotNull 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 ItemStack itemStack, @NotNull TooltipContext tooltipContext, @Nullable Player player) Deprecated.@NotNull DamageSource.BuildercreateDamageSourceBuilder(@NotNull DamageType damageType) Deprecated.Deprecated.createPluginLifecycleEventManager(JavaPlugin javaPlugin, BooleanSupplier booleanSupplier) Deprecated.deserializeEntity(byte[] data, World world) Deprecated.deserializeEntity(byte[] data, World world, boolean preserveUUID) Deprecated.deserializeItem(byte[] data) Deprecated.@NotNull ItemStackdeserializeItemFromJson(@NotNull com.google.gson.JsonObject jsonObject) Deprecated.fromLegacy(Material material) Deprecated.fromLegacy(MaterialData material) Deprecated.fromLegacy(MaterialData materialData, boolean itemPriority) Deprecated.fromLegacy(Material material, byte data) Deprecated.Deprecated.<B extends Keyed>
Bget(Registry<B> registry, NamespacedKey namespacedKey) Deprecated.@NotNull NamespacedKeygetBiomeKey(RegionAccessor accessor, int x, int y, int z) Deprecated.@Nullable StringgetBlockTranslationKey(@NotNull Material material) Deprecated.getCreativeCategory(Material material) Deprecated.@Nullable DamageEffectgetDamageEffect(@NotNull String key) Deprecated.intDeprecated.com.google.common.collect.Multimap<Attribute, AttributeModifier> getDefaultAttributeModifiers(Material material, EquipmentSlot slot) Deprecated.@NotNull AttributablegetDefaultEntityAttributes(@NotNull NamespacedKey entityKey) Deprecated.Deprecated.@Nullable StringgetItemTranslationKey(@NotNull Material material) Deprecated.@NotNull StringDeprecated.getMaterial(String material, int version) Deprecated.intDeprecated.@Nullable ColorgetSpawnEggLayerColor(EntityType entityType, int i) Deprecated.getStatisticCriteriaKey(@NotNull Statistic statistic) Deprecated.Deprecated.Deprecated.getTranslationKey(Attribute attribute) Deprecated.@Nullable StringgetTranslationKey(@NotNull EntityType type) Deprecated.@Nullable StringgetTranslationKey(@NotNull ItemStack itemStack) Deprecated.Deprecated.@NotNull net.kyori.adventure.text.serializer.gson.GsonComponentSerializerDeprecated, for removal: This API element is subject to removal in a future version.booleanhasDefaultEntityAttributes(@NotNull NamespacedKey entityKey) Deprecated.booleanisSupportedApiVersion(String apiVersion) Deprecated, for removal: This API element is subject to removal in a future version.booleanisValidRepairItemStack(@NotNull ItemStack itemToBeRepaired, @NotNull ItemStack repairMaterial) Deprecated.@NotNull net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializerDeprecated, for removal: This API element is subject to removal in a future version.loadAdvancement(NamespacedKey key, String advancement) Deprecated.modifyItemStack(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(PluginDescriptionFile pdf, String path, byte[] clazz) Deprecated.booleanDeprecated.voidDeprecated.net.kyori.adventure.text.ComponentresolveWithContext(net.kyori.adventure.text.Component component, CommandSender context, Entity scoreboardSubject, boolean bypassPermissions) Deprecated.byte[]serializeEntity(Entity entity) Deprecated.byte[]serializeItem(ItemStack item) Deprecated.@NotNull com.google.gson.JsonObjectserializeItemAsJson(@NotNull ItemStack itemStack) Deprecated.voidsetBiomeKey(RegionAccessor accessor, int x, int y, int z, NamespacedKey biomeKey) Deprecated.voidsetMinimumApiVersion(String minimumApiVersion) Deprecated.Sets the minimum api-version allowed.Deprecated.
-
Constructor Details
-
MockUnsafeValues
public MockUnsafeValues()Deprecated.
-
-
Method Details
-
componentFlattener
@NotNull public @NotNull net.kyori.adventure.text.flattener.ComponentFlattener componentFlattener()Deprecated.- Specified by:
componentFlattenerin interfaceUnsafeValues
-
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 interfaceUnsafeValues
-
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 interfaceUnsafeValues
-
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 interfaceUnsafeValues
-
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 interfaceUnsafeValues
-
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 interfaceUnsafeValues
-
resolveWithContext
public net.kyori.adventure.text.Component resolveWithContext(net.kyori.adventure.text.Component component, CommandSender context, Entity scoreboardSubject, boolean bypassPermissions) throws IOException Deprecated.- Specified by:
resolveWithContextin interfaceUnsafeValues- Throws:
IOException
-
reportTimings
public void reportTimings()Deprecated.- Specified by:
reportTimingsin interfaceUnsafeValues
-
toLegacy
Deprecated.- Specified by:
toLegacyin interfaceUnsafeValues
-
fromLegacy
Deprecated.- Specified by:
fromLegacyin interfaceUnsafeValues
-
fromLegacy
Deprecated.- Specified by:
fromLegacyin interfaceUnsafeValues
-
fromLegacy
Deprecated.- Specified by:
fromLegacyin interfaceUnsafeValues
-
fromLegacy
Deprecated.- Specified by:
fromLegacyin interfaceUnsafeValues
-
getDataVersion
public int getDataVersion()Deprecated.- Specified by:
getDataVersionin interfaceUnsafeValues
-
modifyItemStack
Deprecated.- Specified by:
modifyItemStackin interfaceUnsafeValues
-
setMinimumApiVersion
Deprecated.Sets the minimum api-version allowed.- Parameters:
minimumApiVersion- The minimum API version to support.
-
checkSupported
public void checkSupported(@NotNull @NotNull PluginDescriptionFile pdf) throws InvalidPluginException Deprecated.- Specified by:
checkSupportedin interfaceUnsafeValues- Throws:
InvalidPluginException
-
processClass
Deprecated.- Specified by:
processClassin interfaceUnsafeValues
-
loadAdvancement
Deprecated.- Specified by:
loadAdvancementin interfaceUnsafeValues
-
removeAdvancement
Deprecated.- Specified by:
removeAdvancementin interfaceUnsafeValues
-
getDefaultAttributeModifiers
public com.google.common.collect.Multimap<Attribute,AttributeModifier> getDefaultAttributeModifiers(Material material, EquipmentSlot slot) Deprecated.- Specified by:
getDefaultAttributeModifiersin interfaceUnsafeValues
-
getCreativeCategory
Deprecated.- Specified by:
getCreativeCategoryin interfaceUnsafeValues
-
getTimingsServerName
Deprecated.- Specified by:
getTimingsServerNamein interfaceUnsafeValues
-
getVersionFetcher
Deprecated.- Specified by:
getVersionFetcherin interfaceUnsafeValues
-
isSupportedApiVersion
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
isSupportedApiVersionin interfaceUnsafeValues
-
serializeItem
Deprecated.- Specified by:
serializeItemin interfaceUnsafeValues
-
deserializeItem
Deprecated.- Specified by:
deserializeItemin interfaceUnsafeValues
-
serializeItemAsJson
@NotNull public @NotNull com.google.gson.JsonObject serializeItemAsJson(@NotNull @NotNull ItemStack itemStack) Deprecated.- Specified by:
serializeItemAsJsonin interfaceUnsafeValues
-
deserializeItemFromJson
@NotNull public @NotNull ItemStack deserializeItemFromJson(@NotNull @NotNull com.google.gson.JsonObject jsonObject) throws IllegalArgumentException Deprecated.- Specified by:
deserializeItemFromJsonin interfaceUnsafeValues- Throws:
IllegalArgumentException
-
serializeEntity
Deprecated.- Specified by:
serializeEntityin interfaceUnsafeValues
-
deserializeEntity
Deprecated.- Specified by:
deserializeEntityin interfaceUnsafeValues
-
deserializeEntity
Deprecated.- Specified by:
deserializeEntityin interfaceUnsafeValues
-
getBlockTranslationKey
Deprecated.- Specified by:
getBlockTranslationKeyin interfaceUnsafeValues
-
getItemTranslationKey
Deprecated.- Specified by:
getItemTranslationKeyin interfaceUnsafeValues
-
getTranslationKey
Deprecated.- Specified by:
getTranslationKeyin interfaceUnsafeValues
-
getTranslationKey
Deprecated.- Specified by:
getTranslationKeyin interfaceUnsafeValues
-
getTranslationKey
Deprecated.- Specified by:
getTranslationKeyin interfaceUnsafeValues
-
getInternalPotionData
Deprecated.- Specified by:
getInternalPotionDatain interfaceUnsafeValues
-
getDamageEffect
Deprecated.- Specified by:
getDamageEffectin interfaceUnsafeValues
-
createDamageSourceBuilder
public @NotNull DamageSource.Builder createDamageSourceBuilder(@NotNull @NotNull DamageType damageType) Deprecated.- Specified by:
createDamageSourceBuilderin interfaceUnsafeValues
-
get
Deprecated.- Specified by:
getin interfaceUnsafeValues
-
get
Deprecated.- Specified by:
getin interfaceUnsafeValues
-
nextEntityId
public int nextEntityId()Deprecated.- Specified by:
nextEntityIdin interfaceUnsafeValues
-
getMainLevelName
Deprecated.- Specified by:
getMainLevelNamein interfaceUnsafeValues
-
isValidRepairItemStack
public boolean isValidRepairItemStack(@NotNull @NotNull ItemStack itemToBeRepaired, @NotNull @NotNull ItemStack repairMaterial) Deprecated.- Specified by:
isValidRepairItemStackin interfaceUnsafeValues
-
getProtocolVersion
public int getProtocolVersion()Deprecated.- Specified by:
getProtocolVersionin interfaceUnsafeValues
-
hasDefaultEntityAttributes
Deprecated.- Specified by:
hasDefaultEntityAttributesin interfaceUnsafeValues
-
getDefaultEntityAttributes
@NotNull public @NotNull Attributable getDefaultEntityAttributes(@NotNull @NotNull NamespacedKey entityKey) Deprecated.- Specified by:
getDefaultEntityAttributesin interfaceUnsafeValues
-
getBiomeKey
Deprecated.- Specified by:
getBiomeKeyin interfaceUnsafeValues
-
setBiomeKey
Deprecated.- Specified by:
setBiomeKeyin interfaceUnsafeValues
-
getStatisticCriteriaKey
Deprecated.- Specified by:
getStatisticCriteriaKeyin interfaceUnsafeValues
-
getSpawnEggLayerColor
Deprecated.- Specified by:
getSpawnEggLayerColorin interfaceUnsafeValues
-
createPluginLifecycleEventManager
public LifecycleEventManager<Plugin> createPluginLifecycleEventManager(JavaPlugin javaPlugin, BooleanSupplier booleanSupplier) Deprecated.- Specified by:
createPluginLifecycleEventManagerin interfaceUnsafeValues
-
computeTooltipLines
@NotNull public @NotNull List<net.kyori.adventure.text.Component> computeTooltipLines(@NotNull @NotNull ItemStack itemStack, @NotNull @NotNull TooltipContext tooltipContext, @Nullable @Nullable Player player) Deprecated.- Specified by:
computeTooltipLinesin interfaceUnsafeValues
-
getTag
Deprecated.- Specified by:
getTagin interfaceUnsafeValues
-
createEmptyStack
Deprecated.- Specified by:
createEmptyStackin interfaceUnsafeValues
-
getMaterial
Deprecated.- Specified by:
getMaterialin interfaceUnsafeValues
-