| 1 | package net.minecraft.client.data.models.model;
|
| 2 |
|
| 3 | import net.fabricmc.api.EnvType;
|
| 4 | import net.fabricmc.api.Environment;
|
| 5 | import org.jspecify.annotations.Nullable;
|
| 6 |
|
| 7 | /**
|
| 8 | * Access widened by fabric-data-generation-api-v1 to accessible
|
| 9 | */
|
| 10 | @Environment(EnvType.CLIENT)
|
| 11 | public final class TextureSlot {
|
| 12 | public static final TextureSlot ALL = create("all");
|
| 13 | public static final TextureSlot TEXTURE = create("texture", ALL);
|
| 14 | public static final TextureSlot PARTICLE = create("particle", TEXTURE);
|
| 15 | public static final TextureSlot END = create("end", ALL);
|
| 16 | public static final TextureSlot BOTTOM = create("bottom", END);
|
| 17 | public static final TextureSlot TOP = create("top", END);
|
| 18 | public static final TextureSlot FRONT = create("front", ALL);
|
| 19 | public static final TextureSlot BACK = create("back", ALL);
|
| 20 | public static final TextureSlot SIDE = create("side", ALL);
|
| 21 | public static final TextureSlot NORTH = create("north", SIDE);
|
| 22 | public static final TextureSlot SOUTH = create("south", SIDE);
|
| 23 | public static final TextureSlot EAST = create("east", SIDE);
|
| 24 | public static final TextureSlot WEST = create("west", SIDE);
|
| 25 | public static final TextureSlot UP = create("up");
|
| 26 | public static final TextureSlot DOWN = create("down");
|
| 27 | public static final TextureSlot CROSS = create("cross");
|
| 28 | public static final TextureSlot CROSS_EMISSIVE = create("cross_emissive");
|
| 29 | public static final TextureSlot PLANT = create("plant");
|
| 30 | public static final TextureSlot WALL = create("wall", ALL);
|
| 31 | public static final TextureSlot RAIL = create("rail");
|
| 32 | public static final TextureSlot WOOL = create("wool");
|
| 33 | public static final TextureSlot PATTERN = create("pattern");
|
| 34 | public static final TextureSlot PANE = create("pane");
|
| 35 | public static final TextureSlot EDGE = create("edge");
|
| 36 | public static final TextureSlot FAN = create("fan");
|
| 37 | public static final TextureSlot STEM = create("stem");
|
| 38 | public static final TextureSlot UPPER_STEM = create("upperstem");
|
| 39 | public static final TextureSlot CROP = create("crop");
|
| 40 | public static final TextureSlot DIRT = create("dirt");
|
| 41 | public static final TextureSlot FIRE = create("fire");
|
| 42 | public static final TextureSlot LANTERN = create("lantern");
|
| 43 | public static final TextureSlot PLATFORM = create("platform");
|
| 44 | public static final TextureSlot UNSTICKY = create("unsticky");
|
| 45 | public static final TextureSlot TORCH = create("torch");
|
| 46 | public static final TextureSlot LAYER0 = create("layer0");
|
| 47 | public static final TextureSlot LAYER1 = create("layer1");
|
| 48 | public static final TextureSlot LAYER2 = create("layer2");
|
| 49 | public static final TextureSlot LIT_LOG = create("lit_log");
|
| 50 | public static final TextureSlot CANDLE = create("candle");
|
| 51 | public static final TextureSlot INSIDE = create("inside");
|
| 52 | public static final TextureSlot CONTENT = create("content");
|
| 53 | public static final TextureSlot INNER_TOP = create("inner_top");
|
| 54 | public static final TextureSlot FLOWERBED = create("flowerbed");
|
| 55 | public static final TextureSlot TENTACLES = create("tentacles");
|
| 56 | public static final TextureSlot BARS = create("bars");
|
| 57 | private final String id;
|
| 58 | private final @Nullable TextureSlot parent;
|
| 59 |
|
| 60 | /**
|
| 61 | * Access widened by fabric-data-generation-api-v1 to accessible
|
| 62 | */
|
| 63 | public static TextureSlot create(final String id) {
|
| 64 | return new TextureSlot(id, null);
|
| 65 | }
|
| 66 |
|
| 67 | /**
|
| 68 | * Access widened by fabric-data-generation-api-v1 to accessible
|
| 69 | */
|
| 70 | public static TextureSlot create(final String id, final TextureSlot parent) {
|
| 71 | return new TextureSlot(id, parent);
|
| 72 | }
|
| 73 |
|
| 74 | private TextureSlot(final String id, final @Nullable TextureSlot parent) {
|
| 75 | this.id = id;
|
| 76 | this.parent = parent;
|
| 77 | }
|
| 78 |
|
| 79 | public String getId() {
|
| 80 | return this.id;
|
| 81 | }
|
| 82 |
|
| 83 | public @Nullable TextureSlot getParent() {
|
| 84 | return this.parent;
|
| 85 | }
|
| 86 |
|
| 87 | @Override
|
| 88 | public String toString() {
|
| 89 | return "#" + this.id;
|
| 90 | }
|
| 91 | }
|
| 92 |
|