V1510.java

net.minecraft.util.datafix.schemas.V1510

信息

  • 全限定名:net.minecraft.util.datafix.schemas.V1510
  • 类型:public class
  • 包:net.minecraft.util.datafix.schemas
  • 源码路径:src/main/java/net/minecraft/util/datafix/schemas/V1510.java
  • 起始行号:L8
  • 继承:NamespacedSchema
  • 职责:

    TODO

字段/常量

内部类/嵌套类型

构造器

public V1510(int versionKey, Schema parent) @ L9

  • 构造器名:V1510
  • 源码定位:L9
  • 修饰符:public

参数:

  • versionKey: int
  • parent: Schema

说明:

TODO

方法

下面的方法块按源码顺序生成。

public Map<String,Supplier<TypeTemplate>> registerEntities(Schema schema) @ L13

  • 方法名:registerEntities
  • 源码定位:L13
  • 返回类型:Map<String,Supplier>
  • 修饰符:public

参数:

  • schema: Schema

说明:

TODO

代码

public class V1510 extends NamespacedSchema {
    public V1510(int versionKey, Schema parent) {
        super(versionKey, parent);
    }
 
    @Override
    public Map<String, Supplier<TypeTemplate>> registerEntities(Schema schema) {
        Map<String, Supplier<TypeTemplate>> map = super.registerEntities(schema);
        map.put("minecraft:command_block_minecart", map.remove("minecraft:commandblock_minecart"));
        map.put("minecraft:end_crystal", map.remove("minecraft:ender_crystal"));
        map.put("minecraft:snow_golem", map.remove("minecraft:snowman"));
        map.put("minecraft:evoker", map.remove("minecraft:evocation_illager"));
        map.put("minecraft:evoker_fangs", map.remove("minecraft:evocation_fangs"));
        map.put("minecraft:illusioner", map.remove("minecraft:illusion_illager"));
        map.put("minecraft:vindicator", map.remove("minecraft:vindication_illager"));
        map.put("minecraft:iron_golem", map.remove("minecraft:villager_golem"));
        map.put("minecraft:experience_orb", map.remove("minecraft:xp_orb"));
        map.put("minecraft:experience_bottle", map.remove("minecraft:xp_bottle"));
        map.put("minecraft:eye_of_ender", map.remove("minecraft:eye_of_ender_signal"));
        map.put("minecraft:firework_rocket", map.remove("minecraft:fireworks_rocket"));
        return map;
    }
}

引用的其他类