3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-11-19 14:30:17 +01:00

revert bad change

Dieser Commit ist enthalten in:
onebeastchris 2024-04-29 23:41:14 +02:00
Ursprung 5d3630cf23
Commit 28d5db622b
2 geänderte Dateien mit 11 neuen und 10 gelöschten Zeilen

Datei anzeigen

@ -45,7 +45,7 @@ public enum BannerPattern {
STRIPE_MIDDLE("ms"), STRIPE_MIDDLE("ms"),
STRIPE_DOWNRIGHT("drs"), STRIPE_DOWNRIGHT("drs"),
STRIPE_DOWNLEFT("dls"), STRIPE_DOWNLEFT("dls"),
STRIPE_SMALL("ss"), SMALL_STRIPES("ss"),
CROSS("cr"), CROSS("cr"),
STRAIGHT_CROSS("sc"), STRAIGHT_CROSS("sc"),
TRIANGLE_BOTTOM("bt"), TRIANGLE_BOTTOM("bt"),
@ -53,15 +53,15 @@ public enum BannerPattern {
TRIANGLES_BOTTOM("bts"), TRIANGLES_BOTTOM("bts"),
TRIANGLES_TOP("tts"), TRIANGLES_TOP("tts"),
DIAGONAL_LEFT("ld"), DIAGONAL_LEFT("ld"),
DIAGONAL_RIGHT("rd"), DIAGONAL_UP_RIGHT("rd"),
DIAGONAL_LEFT_MIRROR("lud"), DIAGONAL_UP_LEFT("lud"),
DIAGONAL_RIGHT_MIRROR("rud"), DIAGONAL_RIGHT("rud"),
CIRCLE_MIDDLE("mc"), CIRCLE("mc"),
RHOMBUS_MIDDLE("mr"), RHOMBUS("mr"),
HALF_VERTICAL("vh"), HALF_VERTICAL("vh"),
HALF_HORIZONTAL("hh"), HALF_HORIZONTAL("hh"),
HALF_VERTICAL_MIRROR("vhr"), HALF_VERTICAL_RIGHT("vhr"),
HALF_HORIZONTAL_MIRROR("hhb"), HALF_HORIZONTAL_BOTTOM("hhb"),
BORDER("bo"), BORDER("bo"),
CURLY_BORDER("cbo"), CURLY_BORDER("cbo"),
GRADIENT("gra"), GRADIENT("gra"),

Datei anzeigen

@ -64,13 +64,13 @@ public class BannerItem extends BlockItem {
static { static {
// Construct what an ominous banner is supposed to look like // Construct what an ominous banner is supposed to look like
OMINOUS_BANNER_PATTERN = List.of( OMINOUS_BANNER_PATTERN = List.of(
Pair.of(BannerPattern.RHOMBUS_MIDDLE, DyeColor.CYAN), Pair.of(BannerPattern.RHOMBUS, DyeColor.CYAN),
Pair.of(BannerPattern.STRIPE_BOTTOM, DyeColor.LIGHT_GRAY), Pair.of(BannerPattern.STRIPE_BOTTOM, DyeColor.LIGHT_GRAY),
Pair.of(BannerPattern.STRIPE_CENTER, DyeColor.GRAY), Pair.of(BannerPattern.STRIPE_CENTER, DyeColor.GRAY),
Pair.of(BannerPattern.BORDER, DyeColor.LIGHT_GRAY), Pair.of(BannerPattern.BORDER, DyeColor.LIGHT_GRAY),
Pair.of(BannerPattern.STRIPE_MIDDLE, DyeColor.BLACK), Pair.of(BannerPattern.STRIPE_MIDDLE, DyeColor.BLACK),
Pair.of(BannerPattern.HALF_HORIZONTAL, DyeColor.LIGHT_GRAY), Pair.of(BannerPattern.HALF_HORIZONTAL, DyeColor.LIGHT_GRAY),
Pair.of(BannerPattern.CIRCLE_MIDDLE, DyeColor.LIGHT_GRAY), Pair.of(BannerPattern.CIRCLE, DyeColor.LIGHT_GRAY),
Pair.of(BannerPattern.BORDER, DyeColor.BLACK) Pair.of(BannerPattern.BORDER, DyeColor.BLACK)
); );
@ -211,6 +211,7 @@ public class BannerItem extends BlockItem {
List<BannerPatternLayer> patternLayers = new ArrayList<>(); List<BannerPatternLayer> patternLayers = new ArrayList<>();
for (Pair<BannerPattern, DyeColor> pair : OMINOUS_BANNER_PATTERN) { for (Pair<BannerPattern, DyeColor> pair : OMINOUS_BANNER_PATTERN) {
patternLayers.add(new BannerPatternLayer(Holder.ofId(pair.left().ordinal()), pair.right().ordinal())); patternLayers.add(new BannerPatternLayer(Holder.ofId(pair.left().ordinal()), pair.right().ordinal()));
System.out.println("adding: " + pair.left().getJavaIdentifier() + " " + pair.right().name());
} }
components.put(DataComponentType.BANNER_PATTERNS, patternLayers); components.put(DataComponentType.BANNER_PATTERNS, patternLayers);