Skip to content

Commit

Permalink
Use NeoForge face data instead of custom unlit quad hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
embeddedt committed Jan 12, 2025
1 parent b04499a commit 99b3938
Show file tree
Hide file tree
Showing 38 changed files with 151 additions and 338 deletions.
76 changes: 0 additions & 76 deletions src/main/java/appeng/hooks/UnlitQuadHooks.java

This file was deleted.

This file was deleted.

55 changes: 0 additions & 55 deletions src/main/java/appeng/mixins/unlitquad/ModelManagerMixin.java

This file was deleted.

2 changes: 0 additions & 2 deletions src/main/resources/ae2.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
"StructureTemplateMixin"
],
"client": [
"unlitquad.ModelManagerMixin",
"unlitquad.BlockPartFaceDeserializerMixin",
"AbstractContainerScreenMixin",
"GuiGraphicsMixin",
"WrappedGenericStackTooltipModIdMixin",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,32 +10,32 @@
"down": {
"texture": "#lights",
"uv": [0, 0, 16, 16],
"unlit": true
"neoforge_data": {"block_light": 15, "sky_light": 15}
},
"east": {
"texture": "#lights",
"uv": [0, 0, 16, 16],
"unlit": true
"neoforge_data": {"block_light": 15, "sky_light": 15}
},
"north": {
"texture": "#lights",
"uv": [0, 0, 16, 16],
"unlit": true
"neoforge_data": {"block_light": 15, "sky_light": 15}
},
"south": {
"texture": "#lights",
"uv": [0, 0, 16, 16],
"unlit": true
"neoforge_data": {"block_light": 15, "sky_light": 15}
},
"up": {
"texture": "#lights",
"uv": [0, 0, 16, 16],
"unlit": true
"neoforge_data": {"block_light": 15, "sky_light": 15}
},
"west": {
"texture": "#lights",
"uv": [0, 0, 16, 16],
"unlit": true
"neoforge_data": {"block_light": 15, "sky_light": 15}
}
},
"from": [0, 0, 0],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,32 +12,32 @@
"down": {
"texture": "#lights",
"uv": [0, 0, 16, 16],
"unlit": true
"neoforge_data": {"block_light": 15, "sky_light": 15}
},
"east": {
"texture": "#lights",
"uv": [0, 0, 16, 16],
"unlit": true
"neoforge_data": {"block_light": 15, "sky_light": 15}
},
"north": {
"texture": "#lights",
"uv": [0, 0, 16, 16],
"unlit": true
"neoforge_data": {"block_light": 15, "sky_light": 15}
},
"south": {
"texture": "#lights",
"uv": [0, 0, 16, 16],
"unlit": true
"neoforge_data": {"block_light": 15, "sky_light": 15}
},
"up": {
"texture": "#lights",
"uv": [0, 0, 16, 16],
"unlit": true
"neoforge_data": {"block_light": 15, "sky_light": 15}
},
"west": {
"texture": "#lights",
"uv": [0, 0, 16, 16],
"unlit": true
"neoforge_data": {"block_light": 15, "sky_light": 15}
}
},
"from": [0, 0, 0],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,32 +12,32 @@
"down": {
"texture": "#lights",
"uv": [0, 0, 16, 16],
"unlit": true
"neoforge_data": {"block_light": 15, "sky_light": 15}
},
"east": {
"texture": "#lights",
"uv": [0, 0, 16, 16],
"unlit": true
"neoforge_data": {"block_light": 15, "sky_light": 15}
},
"north": {
"texture": "#lights",
"uv": [0, 0, 16, 16],
"unlit": true
"neoforge_data": {"block_light": 15, "sky_light": 15}
},
"south": {
"texture": "#lights",
"uv": [0, 0, 16, 16],
"unlit": true
"neoforge_data": {"block_light": 15, "sky_light": 15}
},
"up": {
"texture": "#lights",
"uv": [0, 0, 16, 16],
"unlit": true
"neoforge_data": {"block_light": 15, "sky_light": 15}
},
"west": {
"texture": "#lights",
"uv": [0, 0, 16, 16],
"unlit": true
"neoforge_data": {"block_light": 15, "sky_light": 15}
}
},
"from": [0, 0, 0],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,37 +13,37 @@
"texture": "#all",
"uv": [2.6, 2.6, 13.4, 13.4],
"cullface": "down",
"unlit": true
"neoforge_data": {"block_light": 15, "sky_light": 15}
},
"up": {
"texture": "#all",
"uv": [2.6, 2.6, 13.4, 13.4],
"cullface": "up",
"unlit": true
"neoforge_data": {"block_light": 15, "sky_light": 15}
},
"north": {
"texture": "#all",
"uv": [2.6, 2.6, 13.4, 13.4],
"cullface": "north",
"unlit": true
"neoforge_data": {"block_light": 15, "sky_light": 15}
},
"south": {
"texture": "#all",
"uv": [2.6, 2.6, 13.4, 13.4],
"cullface": "south",
"unlit": true
"neoforge_data": {"block_light": 15, "sky_light": 15}
},
"west": {
"texture": "#all",
"uv": [2.6, 2.6, 13.4, 13.4],
"cullface": "west",
"unlit": true
"neoforge_data": {"block_light": 15, "sky_light": 15}
},
"east": {
"texture": "#all",
"uv": [2.6, 2.6, 13.4, 13.4],
"cullface": "east",
"unlit": true
"neoforge_data": {"block_light": 15, "sky_light": 15}
}
}
}
Expand Down
12 changes: 6 additions & 6 deletions src/main/resources/assets/ae2/models/block/mysterious_cube.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
"from": [0, 0, 0],
"to": [16, 16, 16],
"faces": {
"north": { "uv": [0, 0, 16, 16], "texture": "#side", "unlit": true },
"east": { "uv": [0, 0, 16, 16], "texture": "#side", "unlit": true },
"south": { "uv": [0, 0, 16, 16], "texture": "#side", "unlit": true },
"west": { "uv": [0, 0, 16, 16], "texture": "#side", "unlit": true },
"up": { "uv": [16, 0, 0, 16], "texture": "#top", "unlit": true },
"down": { "uv": [16, 0, 0, 16], "texture": "#bottom", "unlit": true }
"north": { "uv": [0, 0, 16, 16], "texture": "#side", "neoforge_data": {"block_light": 15, "sky_light": 15} },
"east": { "uv": [0, 0, 16, 16], "texture": "#side", "neoforge_data": {"block_light": 15, "sky_light": 15} },
"south": { "uv": [0, 0, 16, 16], "texture": "#side", "neoforge_data": {"block_light": 15, "sky_light": 15} },
"west": { "uv": [0, 0, 16, 16], "texture": "#side", "neoforge_data": {"block_light": 15, "sky_light": 15} },
"up": { "uv": [16, 0, 0, 16], "texture": "#top", "neoforge_data": {"block_light": 15, "sky_light": 15} },
"down": { "uv": [16, 0, 0, 16], "texture": "#bottom", "neoforge_data": {"block_light": 15, "sky_light": 15} }
}
}
],
Expand Down
Loading

0 comments on commit 99b3938

Please sign in to comment.