Deprecated API
Contents
-
Terminally Deprecated ElementsElementDescriptionsweep results are mutable and must not be sharedUse
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.use the direct accessors onBlockuse the direct accessors onBlockSoundTyperegistry data will no longer be exposedUseWorldBorder.inBounds(Point, BoundingBox)instead. This method now checks the complete bounding box where it previously checked only the entity position.use 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.useServerProperties, which names the same settings and reads them throughServerProperty.get(). Every constant here is the value its property held when this class was initialized, so a setting made writable with<name>.mutable=truenever reaches a reader that came through this class.
-
Deprecated Interfaces
-
Deprecated ClassesClassDescriptionregistry values are exposed directly by their owning protocol objectsuse
ServerProperties, which names the same settings and reads them throughServerProperty.get(). Every constant here is the value its property held when this class was initialized, so a setting made writable with<name>.mutable=truenever reaches a reader that came through this class.
-
Deprecated FieldsFieldDescriptionsweep results are mutable and must not be shared
-
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 exposeduse the direct accessors onBlockuse the direct accessors onBlockSoundTyperegistry data will no longer be exposedUseWorldBorder.inBounds(Point, BoundingBox)instead. This method now checks the complete bounding box where it previously checked only the entity position.normal 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.use 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.misleading 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.useInstance(Registries, UUID, RegistryKey)to choose the registry context explicitlyuseInstance(Registries, UUID, RegistryKey, Key)to choose the registry context explicitlyuseInstanceContainer(Registries, UUID, RegistryKey)to choose the registry context explicitlyuseInstanceContainer(Registries, UUID, RegistryKey, ChunkLoader, Key)to choose the registry context explicitlyuseInstanceContainer(Registries, UUID, RegistryKey, ChunkLoader, Key)to choose the registry context explicitlyuseInstanceContainer(Registries, UUID, RegistryKey, ChunkLoader, Key)to choose the registry context explicitlyUseEntry(KnownLinkType, String)orEntry(Component, String)instead.useCubicBezier(float, float, float, float)instead