User Tools

Site Tools


zh:mtr_addon:nte:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
zh:mtr_addon:nte:start [2025/11/12 11:24] – [NTE: Nemo's Transit Expansion] hackerzh:mtr_addon:nte:start [2025/11/12 14:36] (current) – 已恢复为旧版 (2023/06/06 06:36) BDark000
Line 1: Line 1:
-public class CommandAddTrain extends CommandBase {+<markdown> 
 +# NTE: Nemo's Transit Expansion
  
-    @Override +本模组 NTE(Nemo's Transit Expansion, 蓝星社交通扩展)包含一些由 [Zbx1425](https://www.zbx1425.cn制作的对 [MTR](https://www.curseforge.com/minecraft/mc-mods/minecraft-transit-railway) 模组本体的实验性扩展功能。作为 MTR 开发贡献者之一,作者希望对这些新颖的功能作为独立扩展模组先行发布、展示与实验,并将稳定的部分稍后合并入 MTR 本体中。
-    public String getName() +
-        return "addtrain"; // Komut adı +
-    }+
  
-    @Override + 本模组最初在 [Teacon 2022 模组开发茶会](https://www.teacon.cn) 上公开,当时名为蒸汽动力 (MTRSteamLoco),并荣获 “癫火之王” 荣誉。
-    public String getUsage(ICommandSender sender) { +
-        return "/addtrain <train_name>"; +
-    }+
  
-    @Override +<style> 
-    public void execute(MinecraftServer server, ICommandSender sender, String[] args) throws CommandException { +/* This element defines the size the iframe will take. 
-        if (args.length < 1) +   In this example we want to have a ratio of 25:14 */ 
-            throw new CommandException("U-bahnj.")+.aspect-ratio 
-        }+  position: relative; 
 +  width: 100%; 
 +  height: 0; 
 +  padding-bottom: 56.25%/* The height of the item will now be 56.25% of the width. */ 
 +}
  
-        String trainName = args[0]; +/* Adjust the iframe so it's rendered in the outer-width and outer-height of it's parent *
-         +.aspect-ratio iframe 
-        // Tren ekleme işlemi (mod API'sine göre) +  positionabsolute
-        boolean success = NemoTransitAPI.addTrain(trainName); // Örnek API çağrısı +  width: 100%; 
- +  height100%
-        if (success) +  left: 0; 
-            sender.sendMessage(new TextComponentString("Tren başarıyla eklendi" + trainName))+  top: 0;
-        } else { +
-            sender.sendMessage(new TextComponentString("Tren eklenemedi" + trainName))+
-        } +
-    }+
 } }
-n>+</style> 
 + 
 +<div class="aspect-ratio"> 
 +<iframe src="//player.bilibili.com/player.html?aid=818254400&bvid=BV1kG4y1G7yx&cid=910363279&page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"> </iframe> 
 +</div> 
 + 
 +![Feature Grid](https://www.zbx1425.cn/nautilus/mtr-nte/img/featgrid.jpg) 
 + 
 + 
 + 
 +## 特性 
 + 
 +NTE 目前包含以下功能: 
 + 
 +- 立体轨道 
 +- 新列车:D51 蒸汽机车、北京地铁 DK3,并带有应用新技术制作的车轮与乘务员动画 
 +- OBJ 模型导入支持,协助资源包作者制作应用更精细的模型 
 + 
 +- 可选择隐藏自己所乘坐的列车,便于拍摄前方展望影片 
 + 
 +详见 [新增特性使用指引](feature) 。(**必读 !**) 
 + 
 + 
 + 
 +## 下载 
 + 
 +请参见 [下载](download)。 
 + 
 +在服务器上使用 NTE 自带的或以资源包导入的含 OBJ 模型的列车时,其他没有安装 NTE 和对应资源包的玩家将不能看到这列车。 
 + 
 + 
 + 
 +## 资源包作者支持 
 + 
 +- OBJ 模型导入支持 
 + 
 +  通过新技术,NTE 为在 MTR 中使用 OBJ 格式的模型提供了支持。受益于新制的渲染系统,渲染性能更高,使用面数很高的精细模型时也不会造成很多卡顿。详见 [OBJ 模型相关适配](objschem) 。 
 + 
 +</markdown>
zh/mtr_addon/nte/start.txt · Last modified: 2025/11/12 14:36 by BDark000