TextureSlot.java

net.minecraft.client.data.models.model.TextureSlot

信息

  • 全限定名:net.minecraft.client.data.models.model.TextureSlot
  • 类型:public final class
  • 包:net.minecraft.client.data.models.model
  • 源码路径:src/main/java/net/minecraft/client/data/models/model/TextureSlot.java
  • 起始行号:L8
  • 职责:

    TODO

字段/常量

  • ALL

    • 类型: TextureSlot
    • 修饰符: public static final
    • 源码定位: L9
    • 说明:

      TODO

  • TEXTURE

    • 类型: TextureSlot
    • 修饰符: public static final
    • 源码定位: L10
    • 说明:

      TODO

  • PARTICLE

    • 类型: TextureSlot
    • 修饰符: public static final
    • 源码定位: L11
    • 说明:

      TODO

  • END

    • 类型: TextureSlot
    • 修饰符: public static final
    • 源码定位: L12
    • 说明:

      TODO

  • BOTTOM

    • 类型: TextureSlot
    • 修饰符: public static final
    • 源码定位: L13
    • 说明:

      TODO

  • TOP

    • 类型: TextureSlot
    • 修饰符: public static final
    • 源码定位: L14
    • 说明:

      TODO

  • FRONT

    • 类型: TextureSlot
    • 修饰符: public static final
    • 源码定位: L15
    • 说明:

      TODO

  • BACK

    • 类型: TextureSlot
    • 修饰符: public static final
    • 源码定位: L16
    • 说明:

      TODO

  • SIDE

    • 类型: TextureSlot
    • 修饰符: public static final
    • 源码定位: L17
    • 说明:

      TODO

  • NORTH

    • 类型: TextureSlot
    • 修饰符: public static final
    • 源码定位: L18
    • 说明:

      TODO

  • SOUTH

    • 类型: TextureSlot
    • 修饰符: public static final
    • 源码定位: L19
    • 说明:

      TODO

  • EAST

    • 类型: TextureSlot
    • 修饰符: public static final
    • 源码定位: L20
    • 说明:

      TODO

  • WEST

    • 类型: TextureSlot
    • 修饰符: public static final
    • 源码定位: L21
    • 说明:

      TODO

  • UP

    • 类型: TextureSlot
    • 修饰符: public static final
    • 源码定位: L22
    • 说明:

      TODO

  • DOWN

    • 类型: TextureSlot
    • 修饰符: public static final
    • 源码定位: L23
    • 说明:

      TODO

  • CROSS

    • 类型: TextureSlot
    • 修饰符: public static final
    • 源码定位: L24
    • 说明:

      TODO

  • CROSS_EMISSIVE

    • 类型: TextureSlot
    • 修饰符: public static final
    • 源码定位: L25
    • 说明:

      TODO

  • PLANT

    • 类型: TextureSlot
    • 修饰符: public static final
    • 源码定位: L26
    • 说明:

      TODO

  • WALL

    • 类型: TextureSlot
    • 修饰符: public static final
    • 源码定位: L27
    • 说明:

      TODO

  • RAIL

    • 类型: TextureSlot
    • 修饰符: public static final
    • 源码定位: L28
    • 说明:

      TODO

  • WOOL

    • 类型: TextureSlot
    • 修饰符: public static final
    • 源码定位: L29
    • 说明:

      TODO

  • PATTERN

    • 类型: TextureSlot
    • 修饰符: public static final
    • 源码定位: L30
    • 说明:

      TODO

  • PANE

    • 类型: TextureSlot
    • 修饰符: public static final
    • 源码定位: L31
    • 说明:

      TODO

  • EDGE

    • 类型: TextureSlot
    • 修饰符: public static final
    • 源码定位: L32
    • 说明:

      TODO

  • FAN

    • 类型: TextureSlot
    • 修饰符: public static final
    • 源码定位: L33
    • 说明:

      TODO

  • STEM

    • 类型: TextureSlot
    • 修饰符: public static final
    • 源码定位: L34
    • 说明:

      TODO

  • UPPER_STEM

    • 类型: TextureSlot
    • 修饰符: public static final
    • 源码定位: L35
    • 说明:

      TODO

  • CROP

    • 类型: TextureSlot
    • 修饰符: public static final
    • 源码定位: L36
    • 说明:

      TODO

  • DIRT

    • 类型: TextureSlot
    • 修饰符: public static final
    • 源码定位: L37
    • 说明:

      TODO

  • FIRE

    • 类型: TextureSlot
    • 修饰符: public static final
    • 源码定位: L38
    • 说明:

      TODO

  • LANTERN

    • 类型: TextureSlot
    • 修饰符: public static final
    • 源码定位: L39
    • 说明:

      TODO

  • PLATFORM

    • 类型: TextureSlot
    • 修饰符: public static final
    • 源码定位: L40
    • 说明:

      TODO

  • UNSTICKY

    • 类型: TextureSlot
    • 修饰符: public static final
    • 源码定位: L41
    • 说明:

      TODO

  • TORCH

    • 类型: TextureSlot
    • 修饰符: public static final
    • 源码定位: L42
    • 说明:

      TODO

  • LAYER0

    • 类型: TextureSlot
    • 修饰符: public static final
    • 源码定位: L43
    • 说明:

      TODO

  • LAYER1

    • 类型: TextureSlot
    • 修饰符: public static final
    • 源码定位: L44
    • 说明:

      TODO

  • LAYER2

    • 类型: TextureSlot
    • 修饰符: public static final
    • 源码定位: L45
    • 说明:

      TODO

  • LIT_LOG

    • 类型: TextureSlot
    • 修饰符: public static final
    • 源码定位: L46
    • 说明:

      TODO

  • CANDLE

    • 类型: TextureSlot
    • 修饰符: public static final
    • 源码定位: L47
    • 说明:

      TODO

  • INSIDE

    • 类型: TextureSlot
    • 修饰符: public static final
    • 源码定位: L48
    • 说明:

      TODO

  • CONTENT

    • 类型: TextureSlot
    • 修饰符: public static final
    • 源码定位: L49
    • 说明:

      TODO

  • INNER_TOP

    • 类型: TextureSlot
    • 修饰符: public static final
    • 源码定位: L50
    • 说明:

      TODO

  • FLOWERBED

    • 类型: TextureSlot
    • 修饰符: public static final
    • 源码定位: L51
    • 说明:

      TODO

  • TENTACLES

    • 类型: TextureSlot
    • 修饰符: public static final
    • 源码定位: L52
    • 说明:

      TODO

  • BARS

    • 类型: TextureSlot
    • 修饰符: public static final
    • 源码定位: L53
    • 说明:

      TODO

  • id

    • 类型: String
    • 修饰符: private final
    • 源码定位: L54
    • 说明:

      TODO

  • parent

    • 类型: TextureSlot
    • 修饰符: private final
    • 源码定位: L55
    • 说明:

      TODO

内部类/嵌套类型

构造器

private TextureSlot(String id, TextureSlot parent) @ L65

  • 构造器名:TextureSlot
  • 源码定位:L65
  • 修饰符:private

参数:

  • id: String
  • parent: TextureSlot

说明:

TODO

方法

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

private static TextureSlot create(String id) @ L57

  • 方法名:create
  • 源码定位:L57
  • 返回类型:TextureSlot
  • 修饰符:private static

参数:

  • id: String

说明:

TODO

private static TextureSlot create(String id, TextureSlot parent) @ L61

  • 方法名:create
  • 源码定位:L61
  • 返回类型:TextureSlot
  • 修饰符:private static

参数:

  • id: String
  • parent: TextureSlot

说明:

TODO

public String getId() @ L70

  • 方法名:getId
  • 源码定位:L70
  • 返回类型:String
  • 修饰符:public

参数:

说明:

TODO

public TextureSlot getParent() @ L74

  • 方法名:getParent
  • 源码定位:L74
  • 返回类型:TextureSlot
  • 修饰符:public

参数:

说明:

TODO

public String toString() @ L78

  • 方法名:toString
  • 源码定位:L78
  • 返回类型:String
  • 修饰符:public

参数:

说明:

TODO

代码

@OnlyIn(Dist.CLIENT)
public final class TextureSlot {
    public static final TextureSlot ALL = create("all");
    public static final TextureSlot TEXTURE = create("texture", ALL);
    public static final TextureSlot PARTICLE = create("particle", TEXTURE);
    public static final TextureSlot END = create("end", ALL);
    public static final TextureSlot BOTTOM = create("bottom", END);
    public static final TextureSlot TOP = create("top", END);
    public static final TextureSlot FRONT = create("front", ALL);
    public static final TextureSlot BACK = create("back", ALL);
    public static final TextureSlot SIDE = create("side", ALL);
    public static final TextureSlot NORTH = create("north", SIDE);
    public static final TextureSlot SOUTH = create("south", SIDE);
    public static final TextureSlot EAST = create("east", SIDE);
    public static final TextureSlot WEST = create("west", SIDE);
    public static final TextureSlot UP = create("up");
    public static final TextureSlot DOWN = create("down");
    public static final TextureSlot CROSS = create("cross");
    public static final TextureSlot CROSS_EMISSIVE = create("cross_emissive");
    public static final TextureSlot PLANT = create("plant");
    public static final TextureSlot WALL = create("wall", ALL);
    public static final TextureSlot RAIL = create("rail");
    public static final TextureSlot WOOL = create("wool");
    public static final TextureSlot PATTERN = create("pattern");
    public static final TextureSlot PANE = create("pane");
    public static final TextureSlot EDGE = create("edge");
    public static final TextureSlot FAN = create("fan");
    public static final TextureSlot STEM = create("stem");
    public static final TextureSlot UPPER_STEM = create("upperstem");
    public static final TextureSlot CROP = create("crop");
    public static final TextureSlot DIRT = create("dirt");
    public static final TextureSlot FIRE = create("fire");
    public static final TextureSlot LANTERN = create("lantern");
    public static final TextureSlot PLATFORM = create("platform");
    public static final TextureSlot UNSTICKY = create("unsticky");
    public static final TextureSlot TORCH = create("torch");
    public static final TextureSlot LAYER0 = create("layer0");
    public static final TextureSlot LAYER1 = create("layer1");
    public static final TextureSlot LAYER2 = create("layer2");
    public static final TextureSlot LIT_LOG = create("lit_log");
    public static final TextureSlot CANDLE = create("candle");
    public static final TextureSlot INSIDE = create("inside");
    public static final TextureSlot CONTENT = create("content");
    public static final TextureSlot INNER_TOP = create("inner_top");
    public static final TextureSlot FLOWERBED = create("flowerbed");
    public static final TextureSlot TENTACLES = create("tentacles");
    public static final TextureSlot BARS = create("bars");
    private final String id;
    private final @Nullable TextureSlot parent;
 
    private static TextureSlot create(String id) {
        return new TextureSlot(id, null);
    }
 
    private static TextureSlot create(String id, TextureSlot parent) {
        return new TextureSlot(id, parent);
    }
 
    private TextureSlot(String id, @Nullable TextureSlot parent) {
        this.id = id;
        this.parent = parent;
    }
 
    public String getId() {
        return this.id;
    }
 
    public @Nullable TextureSlot getParent() {
        return this.parent;
    }
 
    @Override
    public String toString() {
        return "#" + this.id;
    }
}

引用的其他类