<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://mdtwiki.top/index.php?action=history&amp;feed=atom&amp;title=%E5%AE%98%E6%96%B9%E7%BB%B4%E5%9F%BA%E6%95%99%E7%A8%8B-7.0%E8%BF%81%E7%A7%BB%E6%8C%87%E5%8D%97</id>
	<title>官方维基教程-7.0迁移指南 - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://mdtwiki.top/index.php?action=history&amp;feed=atom&amp;title=%E5%AE%98%E6%96%B9%E7%BB%B4%E5%9F%BA%E6%95%99%E7%A8%8B-7.0%E8%BF%81%E7%A7%BB%E6%8C%87%E5%8D%97"/>
	<link rel="alternate" type="text/html" href="https://mdtwiki.top/index.php?title=%E5%AE%98%E6%96%B9%E7%BB%B4%E5%9F%BA%E6%95%99%E7%A8%8B-7.0%E8%BF%81%E7%A7%BB%E6%8C%87%E5%8D%97&amp;action=history"/>
	<updated>2026-05-19T21:00:21Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://mdtwiki.top/index.php?title=%E5%AE%98%E6%96%B9%E7%BB%B4%E5%9F%BA%E6%95%99%E7%A8%8B-7.0%E8%BF%81%E7%A7%BB%E6%8C%87%E5%8D%97&amp;diff=2495&amp;oldid=prev</id>
		<title>硫缺铅：​创建页面，内容为“&lt;span id=&quot;迁移指南&quot;&gt;&lt;/span&gt; = 7.0 迁移指南 =  == 方块 ==  * &lt;code&gt;Block#expanded&lt;/code&gt; 现在已被弃用，且无操作，使用 &lt;code&gt;Block#clipSize&lt;/code&gt;替代。这个字段会保留确保兼容性，但最后一定会删的。 * 所有的 &lt;code&gt;mindustry.world.meta.values.*&lt;/code&gt; 类都已经用 lambda 覆盖了。请见于 &lt;code&gt;StatValues&lt;/code&gt; 类。 * &lt;code&gt;方块熔炉&lt;/code&gt; 已经从实验性功能包移出去，并且出现了重大…”</title>
		<link rel="alternate" type="text/html" href="https://mdtwiki.top/index.php?title=%E5%AE%98%E6%96%B9%E7%BB%B4%E5%9F%BA%E6%95%99%E7%A8%8B-7.0%E8%BF%81%E7%A7%BB%E6%8C%87%E5%8D%97&amp;diff=2495&amp;oldid=prev"/>
		<updated>2026-02-01T12:26:18Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“&amp;lt;span id=&amp;quot;迁移指南&amp;quot;&amp;gt;&amp;lt;/span&amp;gt; = 7.0 迁移指南 =  == 方块 ==  * &amp;lt;code&amp;gt;Block#expanded&amp;lt;/code&amp;gt; 现在已被弃用，且无操作，使用 &amp;lt;code&amp;gt;Block#clipSize&amp;lt;/code&amp;gt;替代。这个字段会保留确保兼容性，但最后一定会删的。 * 所有的 &amp;lt;code&amp;gt;mindustry.world.meta.values.*&amp;lt;/code&amp;gt; 类都已经用 lambda 覆盖了。请见于 &amp;lt;code&amp;gt;StatValues&amp;lt;/code&amp;gt; 类。 * &amp;lt;code&amp;gt;方块熔炉&amp;lt;/code&amp;gt; 已经从实验性功能包移出去，并且出现了重大…”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;span id=&amp;quot;迁移指南&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
= 7.0 迁移指南 =&lt;br /&gt;
&lt;br /&gt;
== 方块 ==&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;Block#expanded&amp;lt;/code&amp;gt; 现在已被弃用，且无操作，使用 &amp;lt;code&amp;gt;Block#clipSize&amp;lt;/code&amp;gt;替代。这个字段会保留确保兼容性，但最后一定会删的。&lt;br /&gt;
* 所有的 &amp;lt;code&amp;gt;mindustry.world.meta.values.*&amp;lt;/code&amp;gt; 类都已经用 lambda 覆盖了。请见于 &amp;lt;code&amp;gt;StatValues&amp;lt;/code&amp;gt; 类。&lt;br /&gt;
* &amp;lt;code&amp;gt;方块熔炉&amp;lt;/code&amp;gt; 已经从实验性功能包移出去，并且出现了重大变化。如果你在 Java 模组里用了这个类，建议你复制粘贴进去以便于保持使用旧版本。其他的实验性方块也可能随时被移出去。&lt;br /&gt;
*  &amp;lt;code&amp;gt;CacheLayer&amp;lt;/code&amp;gt; 现在是一个可以重载方法的类，不是枚举。&amp;lt;code&amp;gt;CacheLayer#add&amp;lt;/code&amp;gt; 能被用来注册新的层。&lt;br /&gt;
* 更多的字段，比如 &amp;lt;code&amp;gt;variants&amp;lt;/code&amp;gt; 和 &amp;lt;code&amp;gt;attributes&amp;lt;/code&amp;gt; 是从 &amp;lt;code&amp;gt;Floor&amp;lt;/code&amp;gt; 移动到 &amp;lt;code&amp;gt;Block&amp;lt;/code&amp;gt;。&lt;br /&gt;
* &amp;lt;code&amp;gt;Iconc&amp;lt;/code&amp;gt; 以及相关的方法都被移除， 使用 &amp;lt;code&amp;gt;UnlockableContent.uiIcon/fullIcon&amp;lt;/code&amp;gt;.&lt;br /&gt;
* 弃用了 &amp;lt;code&amp;gt;Smelter&amp;lt;/code&amp;gt; 和 &amp;lt;code&amp;gt;AttributeSmelter&amp;lt;/code&amp;gt; 。 这些类具有硬编码的绘图功能。尽快改为 &amp;lt;code&amp;gt;GenericCrafter&amp;lt;/code&amp;gt; 加上 &amp;lt;code&amp;gt;DrawSmelter&amp;lt;/code&amp;gt; 。对于属性支持， 使用 &amp;lt;code&amp;gt;AttributeCrafter&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;code&amp;gt;Cultivator&amp;lt;/code&amp;gt; 和 &amp;lt;code&amp;gt;Smelter&amp;lt;/code&amp;gt;，一样被弃用， 使用&amp;lt;code&amp;gt;AttributeCrafter&amp;lt;/code&amp;gt; 代替。&lt;br /&gt;
* &amp;lt;code&amp;gt;ExtendingItemBridge&amp;lt;/code&amp;gt; 和 &amp;lt;code&amp;gt;LiquidExtendingBridge&amp;lt;/code&amp;gt; 合并到了 &amp;lt;code&amp;gt;ItemBridge&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;LiquidBridge&amp;lt;/code&amp;gt;。&lt;br /&gt;
* &amp;lt;code&amp;gt;PayloadAcceptor&amp;lt;/code&amp;gt; 是一个错误的包里面有误导性的词，使用&amp;lt;code&amp;gt;PayloadBlock&amp;lt;/code&amp;gt; 代替。&lt;br /&gt;
* 现在生成的图像 &amp;#039;&amp;#039;&amp;#039;必须&amp;#039;&amp;#039;&amp;#039; 用 &amp;lt;code&amp;gt;createIcons&amp;lt;/code&amp;gt; ；试图只用&amp;lt;code&amp;gt;Core.atlas.addRegion&amp;lt;/code&amp;gt; 会失效。&lt;br /&gt;
* &amp;lt;code&amp;gt;LiquidModule#total()&amp;lt;/code&amp;gt; 被弃用，使用 &amp;lt;code&amp;gt;currentAmount()&amp;lt;/code&amp;gt; 代替。&lt;br /&gt;
&lt;br /&gt;
== 子弹 ==&lt;br /&gt;
&lt;br /&gt;
* 任何使用单位弹药的mod代码现在都失效了。&lt;br /&gt;
*  &amp;lt;code&amp;gt;ResupplyPoint&amp;lt;/code&amp;gt; 类被删除了。&lt;br /&gt;
* &amp;lt;code&amp;gt;AmmoType&amp;lt;/code&amp;gt; 由类变成了接口。&lt;br /&gt;
* &amp;lt;code&amp;gt;AmmoTypes&amp;lt;/code&amp;gt; 被删除了，用一个引用来代替。&lt;br /&gt;
* 子弹类型的类移动到了&amp;lt;code&amp;gt;mindustry.type.ammo&amp;lt;/code&amp;gt; 包。&lt;br /&gt;
* &amp;lt;code&amp;gt;ContentType.ammo&amp;lt;/code&amp;gt; 删了，作为子弹什么也不会做。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;arc&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
== Arc ==&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;Pixmap&amp;lt;/code&amp;gt;的 API 完完全全变化了。 大多数方法都被禁用，颜色/混合/大小参数不再是 &amp;lt;code&amp;gt;Pixmap&amp;lt;/code&amp;gt; 的状态机制。大多数与图像有关的方法现在是纯 Java 而不是 JNI + C。&lt;br /&gt;
* &amp;lt;code&amp;gt;SettingsDialog&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;Vars.ui.settings&amp;lt;/code&amp;gt;) 已经移入基础代码。 This technically doesn’t change the API; however, Java mods compiled with 6.0 source will try to access non-existent fields of a non-existent class, leading to crashes. Recompiling with v7 Mindustry/arc dependencies should be enough to fix this.这从技术上来讲并没有改变 API ，&amp;lt;u&amp;gt;&amp;#039;&amp;#039;&amp;#039;但是&amp;#039;&amp;#039;&amp;#039;&amp;lt;/u&amp;gt;，6.0的Java模组&lt;br /&gt;
* TextureAtlas now uses the smaller, faster &amp;lt;code&amp;gt;aatls&amp;lt;/code&amp;gt; binary format. Update your Arc dependencies to read it.&lt;br /&gt;
* &amp;lt;code&amp;gt;Core.net&amp;lt;/code&amp;gt; has been removed, use the static methods in &amp;lt;code&amp;gt;arc.util.Http&amp;lt;/code&amp;gt; instead.&lt;br /&gt;
* &amp;lt;code&amp;gt;RidgedPerlin&amp;lt;/code&amp;gt; has been renamed to &amp;lt;code&amp;gt;Ridged&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;code&amp;gt;Simplex&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;Ridged&amp;lt;/code&amp;gt; are now stateless; use static methods to generate noise now. The seed is a parameter.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;networking&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
== Networking ==&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;Registrator&amp;lt;/code&amp;gt; for packets has been moved to &amp;lt;code&amp;gt;Net&amp;lt;/code&amp;gt;, and registration methods have been made public, for potential use in Java mods.&lt;br /&gt;
* &amp;lt;code&amp;gt;InvokePacket&amp;lt;/code&amp;gt; has been removed, and replaced with generated packet classes that handle events directly.&lt;br /&gt;
* &amp;lt;code&amp;gt;RemoteRead{Server, Client}&amp;lt;/code&amp;gt; have also been removed.&lt;br /&gt;
* &amp;lt;code&amp;gt;Packet&amp;lt;/code&amp;gt; is now an abstract class, not an interface.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;misc&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
== Misc ==&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;BulletType#despawned&amp;lt;/code&amp;gt; is no longer called in many cases, use &amp;lt;code&amp;gt;#removed&amp;lt;/code&amp;gt; if you need to listen to all removal events&lt;br /&gt;
* &amp;lt;code&amp;gt;Attribute&amp;lt;/code&amp;gt; is now a standard class, not an enum. Use &amp;lt;code&amp;gt;Attribute.add&amp;lt;/code&amp;gt; to register a new one.&lt;br /&gt;
* &amp;lt;code&amp;gt;Vars.miningRange&amp;lt;/code&amp;gt; has been moved to &amp;lt;code&amp;gt;UnitType&amp;lt;/code&amp;gt;.&lt;br /&gt;
* All fields in &amp;lt;code&amp;gt;Tex&amp;lt;/code&amp;gt; are now &amp;lt;code&amp;gt;Drawable&amp;lt;/code&amp;gt;, not &amp;lt;code&amp;gt;NinePatchDrawable&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;TextureRegionDrawable&amp;lt;/code&amp;gt;. Why? These fields are loaded from the atlas, which means mods that change UI sprites or an outdated atlas could previously cause a &amp;lt;code&amp;gt;ClassCastException&amp;lt;/code&amp;gt; crash.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;sprites&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
== Sprites ==&lt;br /&gt;
&lt;br /&gt;
* Outlines are now automatically generated for unit &amp;amp;amp; weapon sprites. Leg regions are currently exempt.&lt;br /&gt;
* All mod sprites are now automatically alpha-bled at load time when linear filtering is enabled - there is no need to do so manually.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;More changes to come.&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
I will be introducing &amp;lt;code&amp;gt;@Deprecated&amp;lt;/code&amp;gt; compatibility methods for most significant changes as needed. Ideally, most 6.0 java mods should still work with 7.0.&lt;/div&gt;</summary>
		<author><name>硫缺铅</name></author>
	</entry>
</feed>