christmas chest textures (24-26 december, chests and trapped chests, local_time item models, pixelpics.testDate test property), chest items from the item definition texture, shield banner patterns, item displays turned 180° like vanilla, dropped item lift from the ground model bounds, baby held-item offset, map decorations on framed vanilla maps (banners, frames, markers; none on photo maps), inverted block elements in items and displays (spawner, vault inner faces), deterministic test scenes, items/xmas/marker test scenes
This commit is contained in:
1 parent
9e48e35680
commit
9093c1ccfb
17 files changed
+681
-74
No files matched your search
@@ -244,6 +244,36 @@ public class BlockEntityTestRender {
|
||||
decoScenes.put("item_frame_E", List.of(new DecorationState(DecorationState.Kind.ITEM_FRAME,
|
||||
0.9375, 0.0625, 0.0625, 1.0, 0.9375, 0.9375, DecorationState.Facing.EAST, null, new eu.mhsl.minecraft.pixelpics.render.entity.ItemSpec("diamond", null, null, false), null, 0, false, false)));
|
||||
|
||||
// Shields (plain / red base / blue + creeper + border patterns), chests (christmas with
|
||||
// -Dpixelpics.testDate=2026-12-25) and a decorated map in frames (map/decorations sprites as MapRenderer).
|
||||
BlockEntityState shieldPats = new BlockEntityState(Kind.BANNER, 0, 0, 0, 0, null, false, null, 0xFF3C44AA, null, null, null,
|
||||
List.of(new BannerPattern("creeper", 0xFFFED83D), new BannerPattern("border", 0xFFF9FFFE)), List.of(), null, null);
|
||||
BlockEntityState shieldRed = new BlockEntityState(Kind.BANNER, 0, 0, 0, 0, null, false, null, 0xFFB02E26, null, null, null,
|
||||
List.of(), List.of(), null, null);
|
||||
String[] frameItems = {"shield", "shield_red", "shield_patterns", "chest", "trapped_chest", "ender_chest"};
|
||||
for (String id : frameItems) {
|
||||
ItemSpec spec = switch (id) {
|
||||
case "shield_red" -> new ItemSpec("shield", null, shieldRed, false);
|
||||
case "shield_patterns" -> new ItemSpec("shield", null, shieldPats, false);
|
||||
default -> new ItemSpec(id, null, null, false);
|
||||
};
|
||||
decoScenes.put("item_frame_" + id, List.of(new DecorationState(DecorationState.Kind.ITEM_FRAME,
|
||||
0.0625, 0.0625, 0, 0.9375, 0.9375, 0.0625, DecorationState.Facing.SOUTH, null, spec, null, 0, false, false)));
|
||||
}
|
||||
int[][] mapPx = new int[128][128];
|
||||
for (int y = 0; y < 128; y++) for (int x = 0; x < 128; x++) mapPx[y][x] = ((x / 16 + y / 16) & 1) == 0 ? 0xFF7FB238 : 0xFF3F76E4;
|
||||
List<DecorationState.MapMarker> markers = List.of(
|
||||
new DecorationState.MapMarker("frame", 0, 0, 0),
|
||||
new DecorationState.MapMarker("red_banner", -60, -50, 8),
|
||||
new DecorationState.MapMarker("target_x", 70, 60, 0),
|
||||
new DecorationState.MapMarker("frame", 40, -90, 4),
|
||||
new DecorationState.MapMarker("blue_banner", -100, 90, 0));
|
||||
for (int rot : new int[] {0, 1}) {
|
||||
decoScenes.put("item_frame_map_markers_r" + rot, List.of(new DecorationState(DecorationState.Kind.ITEM_FRAME,
|
||||
0.0625, 0.0625, 0, 0.9375, 0.9375, 0.0625, DecorationState.Facing.SOUTH, null,
|
||||
new ItemSpec("filled_map", null, null, false), mapPx, rot, false, false, markers)));
|
||||
}
|
||||
|
||||
List<BufferedImage> cells = new ArrayList<>();
|
||||
List<String> names = new ArrayList<>(scenes.keySet());
|
||||
for (String name : names) {
|
||||
|
||||
Reference in new issue
Block a user