Deprecated API
Contents
-
Terminally Deprecated ElementsElementDescriptionUse
Point.asBlockVec()insteadusePoint.asPos()insteadusePoint.asPos()instead.usePoint.asVec()insteadusePoint.lerp(Point, double)with aEaseFunctioninsteaduseEaseFunctioninstead withVec.lerp(Point, double)use the direct accessors onAttributeuse the direct accessors onEntityTypeUseMetadataHolder(Consumer)instead.use the direct accessors onVillagerProfessionregistry data will no longer be exposedThis creates the AnvilLoader for worlds created before 26.1. UseAnvilLoader(Path, Key)instead.This creates the AnvilLoader for worlds created before 26.1. UseAnvilLoader(Path, Key)instead.useBlock.air()useBlock.fluid()useBlock.liquid()useBlock.solid()use the direct accessors onBlockuse the direct accessors onBlockSoundTyperegistry data will no longer be exposeduseMaterial.armor()useblock() != nulluse the direct accessors onMaterialUseEntry(KnownLinkType, String)orEntry(Component, String)instead.UseServerLinksPacket.Entry.linkType()instead.UseServerLinksPacket.Entry.linkType()instead.UseSoundEffectPacket.origin()withPoint.blockX()instead.UseSoundEffectPacket.origin()withPoint.blockY()instead.UseSoundEffectPacket.origin()withPoint.blockZ()instead.UsePlayerConnection.getClientState()orPlayerConnection.getServerState()instead.use the direct accessors onPotionEffectregistry values are exposed directly by their owning protocol objectsuseEntityType.entityAttachments(String)and select the first attachmentReadDataComponents.ENTITY_DATAfor the spawned entity data.registry values are exposed directly by each protocol object
-
Deprecated Interfaces
-
Deprecated ClassesClassDescriptionregistry values are exposed directly by their owning protocol objects
-
Deprecated MethodsMethodDescriptionUse
Codec.RegistryTaggedUnion(String, Registries.Selector, Function)instead. Creates aStructCodecto bidirectionally map values ofTto their encoded values
Registry selectors will be used to lookup values of codecs ofT. Then will be used to map to objectTfromkeyusePoint.sectionY()instead.usePoint.asPos()insteadusePoint.asPos()instead.usePoint.asVec()insteadusePoint.lerp(Point, double)with aEaseFunctioninsteaduse the direct accessors onAttributeIt's preferred to useAcquirableSource.acquirable()instead, as it is overridden by subclassesuseDataComponents.CUSTOM_NAMEinstead.useDataComponents.CUSTOM_NAMEinstead.use the direct accessors onEntityTypeuseDataComponents.CHICKEN_VARIANTinstead.useDataComponents.CHICKEN_VARIANTinstead.useDataComponents.COW_VARIANTinstead.useDataComponents.COW_VARIANTinstead.useDataComponents.FOX_VARIANTinstead.useDataComponents.FOX_VARIANTinstead.useDataComponents.FROG_VARIANTinstead.useDataComponents.FROG_VARIANTinstead.useDataComponents.LLAMA_VARIANTinstead.useDataComponents.LLAMA_VARIANTinstead.useDataComponents.MOOSHROOM_VARIANTinstead.useDataComponents.MOOSHROOM_VARIANTinstead.useDataComponents.PIG_VARIANTinstead.useDataComponents.PIG_VARIANTinstead.useDataComponents.RABBIT_VARIANTinstead.useDataComponents.RABBIT_VARIANTinstead.useDataComponents.SHEEP_COLORinstead.useDataComponents.SHEEP_COLORinstead.useDataComponents.CAT_COLLARinstead.useDataComponents.CAT_VARIANTinstead.useDataComponents.CAT_COLLARinstead.useDataComponents.CAT_VARIANTinstead.useDataComponents.PARROT_VARIANTinstead.useDataComponents.PARROT_VARIANTinstead.useDataComponents.WOLF_COLLARinstead.useDataComponents.WOLF_SOUND_VARIANTinstead.useDataComponents.WOLF_VARIANTinstead.useDataComponents.WOLF_COLLARinstead.useDataComponents.WOLF_SOUND_VARIANTinstead.useDataComponents.WOLF_VARIANTinstead.useDataComponents.ZOMBIE_NAUTILUS_VARIANTinstead.useDataComponents.ZOMBIE_NAUTILUS_VARIANTinstead.useDataComponents.CUSTOM_NAMEinstead.useDataComponents.CUSTOM_NAMEinstead.useDataComponents.SHULKER_COLORinstead.useDataComponents.SHULKER_COLORinstead.useDataComponents.PAINTING_VARIANTinstead.useDataComponents.PAINTING_VARIANTinstead.useDataComponents.AXOLOTL_VARIANTinstead.useDataComponents.AXOLOTL_VARIANTinstead.useDataComponents.SALMON_SIZEinstead.useDataComponents.SALMON_SIZEinstead.useDataComponentsinstead.net.minestom.server.entity.metadata.water.fish.TropicalFishMeta.setVariant(TropicalFishMeta.Variant) useDataComponentsinstead.use the direct accessors onVillagerProfessionregistry data will no longer be exposeduseBlock.air()useBlock.fluid()useBlock.liquid()useBlock.solid()use the direct accessors onBlockuse the direct accessors onBlockSoundTyperegistry data will no longer be exposednormal inventories no longer store cursor itemsnormal inventories no longer store cursor itemsUseItemStack.fromItemNBT(CompoundBinaryTag, Registries)instead.UseItemStack.Hash.of(ItemStack, Registries)instead.UseItemStack.toItemNBT(Registries)instead.useMaterial.armor()useblock() != nulluse the direct accessors onMaterialUseServerLinksPacket.Entry.linkType()instead.UseServerLinksPacket.Entry.linkType()instead.UseSoundEffectPacket.origin()withPoint.blockX()instead.UseSoundEffectPacket.origin()withPoint.blockY()instead.UseSoundEffectPacket.origin()withPoint.blockZ()instead.UsePlayerConnection.getClientState()orPlayerConnection.getServerState()instead.use the direct accessors onPotionEffectUseRegistryData.BlockEntry.blockEntityTypeUseRegistryData.BlockEntry.blockEntityTypeuseEntityType.entityAttachments(String)and select the first attachmentReadDataComponents.ENTITY_DATAfor the spawned entity data.registry values are exposed directly by each protocol objectmisleading non-record component, useTag.key()instead.
-
Deprecated ConstructorsConstructorDescriptionUse
Point.asBlockVec()insteadUsePoint.asPos()insteadUsePoint.asPos()instead withPos.withView(float, float)UseMetadataHolder(Consumer)instead.This creates the AnvilLoader for worlds created before 26.1. UseAnvilLoader(Path, Key)instead.This creates the AnvilLoader for worlds created before 26.1. UseAnvilLoader(Path, Key)instead.UseEntry(KnownLinkType, String)orEntry(Component, String)instead.