mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-02-20 21:10:05 +00:00
Fix printouts crashing in item frames
This commit is contained in:
parent
cdc91a8e5d
commit
2457a31728
@ -63,7 +63,7 @@ class Monitor_Test {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test
|
* Test monitors render correctly
|
||||||
*/
|
*/
|
||||||
@GameTestGenerator
|
@GameTestGenerator
|
||||||
fun Render_monitor_tests(): List<TestFunction> {
|
fun Render_monitor_tests(): List<TestFunction> {
|
||||||
@ -72,7 +72,7 @@ class Monitor_Test {
|
|||||||
fun addTest(label: String, renderer: MonitorRenderer, time: Long = Times.NOON, tag: String = TestTags.CLIENT) {
|
fun addTest(label: String, renderer: MonitorRenderer, time: Long = Times.NOON, tag: String = TestTags.CLIENT) {
|
||||||
if (!TestTags.isEnabled(tag)) return
|
if (!TestTags.isEnabled(tag)) return
|
||||||
|
|
||||||
val className = Monitor_Test::class.java.simpleName.lowercase()
|
val className = this::class.java.simpleName.lowercase()
|
||||||
val testName = "$className.render_monitor"
|
val testName = "$className.render_monitor"
|
||||||
|
|
||||||
tests.add(
|
tests.add(
|
||||||
|
@ -0,0 +1,53 @@
|
|||||||
|
package dan200.computercraft.gametest
|
||||||
|
|
||||||
|
import dan200.computercraft.gametest.api.*
|
||||||
|
import net.minecraft.gametest.framework.GameTestGenerator
|
||||||
|
import net.minecraft.gametest.framework.GameTestHelper
|
||||||
|
import net.minecraft.gametest.framework.TestFunction
|
||||||
|
|
||||||
|
class Printout_Test {
|
||||||
|
/**
|
||||||
|
* Test printouts render correctly
|
||||||
|
*/
|
||||||
|
@GameTestGenerator
|
||||||
|
fun Render_in_frame(): List<TestFunction> {
|
||||||
|
val tests = mutableListOf<TestFunction>()
|
||||||
|
|
||||||
|
fun addTest(label: String, time: Long = Times.NOON, tag: String = TestTags.CLIENT) {
|
||||||
|
if (!TestTags.isEnabled(tag)) return
|
||||||
|
|
||||||
|
val className = this::class.java.simpleName.lowercase()
|
||||||
|
val testName = "$className.render_in_frame"
|
||||||
|
|
||||||
|
tests.add(
|
||||||
|
TestFunction(
|
||||||
|
"$testName.$label",
|
||||||
|
"$testName.$label",
|
||||||
|
testName,
|
||||||
|
Timeouts.DEFAULT,
|
||||||
|
0,
|
||||||
|
true,
|
||||||
|
) { renderPrintout(it, time) },
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
addTest("noon", Times.NOON)
|
||||||
|
addTest("midnight", Times.MIDNIGHT)
|
||||||
|
|
||||||
|
addTest("sodium", tag = "sodium")
|
||||||
|
|
||||||
|
addTest("iris_noon", Times.NOON, tag = "iris")
|
||||||
|
addTest("iris_midnight", Times.MIDNIGHT, tag = "iris")
|
||||||
|
|
||||||
|
return tests
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun renderPrintout(helper: GameTestHelper, time: Long) = helper.sequence {
|
||||||
|
thenExecute {
|
||||||
|
helper.level.dayTime = time
|
||||||
|
helper.positionAtArmorStand()
|
||||||
|
}
|
||||||
|
|
||||||
|
thenScreenshot()
|
||||||
|
}
|
||||||
|
}
|
@ -80,6 +80,7 @@ object TestHooks {
|
|||||||
Monitor_Test::class.java,
|
Monitor_Test::class.java,
|
||||||
Pocket_Computer_Test::class.java,
|
Pocket_Computer_Test::class.java,
|
||||||
Printer_Test::class.java,
|
Printer_Test::class.java,
|
||||||
|
Printout_Test::class.java,
|
||||||
Recipe_Test::class.java,
|
Recipe_Test::class.java,
|
||||||
Turtle_Test::class.java,
|
Turtle_Test::class.java,
|
||||||
)
|
)
|
||||||
|
139
projects/common/src/testMod/resources/data/cctest/structures/printout_test.render_in_frame.snbt
generated
Normal file
139
projects/common/src/testMod/resources/data/cctest/structures/printout_test.render_in_frame.snbt
generated
Normal file
@ -0,0 +1,139 @@
|
|||||||
|
{
|
||||||
|
DataVersion: 3218,
|
||||||
|
size: [5, 5, 5],
|
||||||
|
data: [
|
||||||
|
{pos: [0, 0, 0], state: "minecraft:polished_andesite"},
|
||||||
|
{pos: [0, 0, 1], state: "minecraft:polished_andesite"},
|
||||||
|
{pos: [0, 0, 2], state: "minecraft:polished_andesite"},
|
||||||
|
{pos: [0, 0, 3], state: "minecraft:polished_andesite"},
|
||||||
|
{pos: [0, 0, 4], state: "minecraft:polished_andesite"},
|
||||||
|
{pos: [1, 0, 0], state: "minecraft:polished_andesite"},
|
||||||
|
{pos: [1, 0, 1], state: "minecraft:polished_andesite"},
|
||||||
|
{pos: [1, 0, 2], state: "minecraft:polished_andesite"},
|
||||||
|
{pos: [1, 0, 3], state: "minecraft:polished_andesite"},
|
||||||
|
{pos: [1, 0, 4], state: "minecraft:polished_andesite"},
|
||||||
|
{pos: [2, 0, 0], state: "minecraft:polished_andesite"},
|
||||||
|
{pos: [2, 0, 1], state: "minecraft:polished_andesite"},
|
||||||
|
{pos: [2, 0, 2], state: "minecraft:polished_andesite"},
|
||||||
|
{pos: [2, 0, 3], state: "minecraft:polished_andesite"},
|
||||||
|
{pos: [2, 0, 4], state: "minecraft:polished_andesite"},
|
||||||
|
{pos: [3, 0, 0], state: "minecraft:polished_andesite"},
|
||||||
|
{pos: [3, 0, 1], state: "minecraft:polished_andesite"},
|
||||||
|
{pos: [3, 0, 2], state: "minecraft:polished_andesite"},
|
||||||
|
{pos: [3, 0, 3], state: "minecraft:polished_andesite"},
|
||||||
|
{pos: [3, 0, 4], state: "minecraft:polished_andesite"},
|
||||||
|
{pos: [4, 0, 0], state: "minecraft:polished_andesite"},
|
||||||
|
{pos: [4, 0, 1], state: "minecraft:polished_andesite"},
|
||||||
|
{pos: [4, 0, 2], state: "minecraft:polished_andesite"},
|
||||||
|
{pos: [4, 0, 3], state: "minecraft:polished_andesite"},
|
||||||
|
{pos: [4, 0, 4], state: "minecraft:polished_andesite"},
|
||||||
|
{pos: [0, 1, 0], state: "minecraft:air"},
|
||||||
|
{pos: [0, 1, 1], state: "minecraft:air"},
|
||||||
|
{pos: [0, 1, 2], state: "minecraft:air"},
|
||||||
|
{pos: [0, 1, 3], state: "minecraft:air"},
|
||||||
|
{pos: [0, 1, 4], state: "minecraft:air"},
|
||||||
|
{pos: [1, 1, 0], state: "minecraft:air"},
|
||||||
|
{pos: [1, 1, 1], state: "minecraft:air"},
|
||||||
|
{pos: [1, 1, 2], state: "minecraft:air"},
|
||||||
|
{pos: [1, 1, 3], state: "minecraft:air"},
|
||||||
|
{pos: [1, 1, 4], state: "minecraft:air"},
|
||||||
|
{pos: [2, 1, 0], state: "minecraft:air"},
|
||||||
|
{pos: [2, 1, 1], state: "minecraft:air"},
|
||||||
|
{pos: [2, 1, 2], state: "minecraft:air"},
|
||||||
|
{pos: [2, 1, 3], state: "minecraft:air"},
|
||||||
|
{pos: [2, 1, 4], state: "minecraft:polished_andesite"},
|
||||||
|
{pos: [3, 1, 0], state: "minecraft:air"},
|
||||||
|
{pos: [3, 1, 1], state: "minecraft:air"},
|
||||||
|
{pos: [3, 1, 2], state: "minecraft:air"},
|
||||||
|
{pos: [3, 1, 3], state: "minecraft:air"},
|
||||||
|
{pos: [3, 1, 4], state: "minecraft:air"},
|
||||||
|
{pos: [4, 1, 0], state: "minecraft:air"},
|
||||||
|
{pos: [4, 1, 1], state: "minecraft:air"},
|
||||||
|
{pos: [4, 1, 2], state: "minecraft:air"},
|
||||||
|
{pos: [4, 1, 3], state: "minecraft:air"},
|
||||||
|
{pos: [4, 1, 4], state: "minecraft:air"},
|
||||||
|
{pos: [0, 2, 0], state: "minecraft:air"},
|
||||||
|
{pos: [0, 2, 1], state: "minecraft:air"},
|
||||||
|
{pos: [0, 2, 2], state: "minecraft:air"},
|
||||||
|
{pos: [0, 2, 3], state: "minecraft:air"},
|
||||||
|
{pos: [0, 2, 4], state: "minecraft:air"},
|
||||||
|
{pos: [1, 2, 0], state: "minecraft:air"},
|
||||||
|
{pos: [1, 2, 1], state: "minecraft:air"},
|
||||||
|
{pos: [1, 2, 2], state: "minecraft:air"},
|
||||||
|
{pos: [1, 2, 3], state: "minecraft:air"},
|
||||||
|
{pos: [1, 2, 4], state: "minecraft:air"},
|
||||||
|
{pos: [2, 2, 0], state: "minecraft:air"},
|
||||||
|
{pos: [2, 2, 1], state: "minecraft:air"},
|
||||||
|
{pos: [2, 2, 2], state: "minecraft:air"},
|
||||||
|
{pos: [2, 2, 3], state: "minecraft:air"},
|
||||||
|
{pos: [2, 2, 4], state: "minecraft:polished_andesite"},
|
||||||
|
{pos: [3, 2, 0], state: "minecraft:air"},
|
||||||
|
{pos: [3, 2, 1], state: "minecraft:air"},
|
||||||
|
{pos: [3, 2, 2], state: "minecraft:air"},
|
||||||
|
{pos: [3, 2, 3], state: "minecraft:air"},
|
||||||
|
{pos: [3, 2, 4], state: "minecraft:air"},
|
||||||
|
{pos: [4, 2, 0], state: "minecraft:air"},
|
||||||
|
{pos: [4, 2, 1], state: "minecraft:air"},
|
||||||
|
{pos: [4, 2, 2], state: "minecraft:air"},
|
||||||
|
{pos: [4, 2, 3], state: "minecraft:air"},
|
||||||
|
{pos: [4, 2, 4], state: "minecraft:air"},
|
||||||
|
{pos: [0, 3, 0], state: "minecraft:air"},
|
||||||
|
{pos: [0, 3, 1], state: "minecraft:air"},
|
||||||
|
{pos: [0, 3, 2], state: "minecraft:air"},
|
||||||
|
{pos: [0, 3, 3], state: "minecraft:air"},
|
||||||
|
{pos: [0, 3, 4], state: "minecraft:air"},
|
||||||
|
{pos: [1, 3, 0], state: "minecraft:air"},
|
||||||
|
{pos: [1, 3, 1], state: "minecraft:air"},
|
||||||
|
{pos: [1, 3, 2], state: "minecraft:air"},
|
||||||
|
{pos: [1, 3, 3], state: "minecraft:air"},
|
||||||
|
{pos: [1, 3, 4], state: "minecraft:air"},
|
||||||
|
{pos: [2, 3, 0], state: "minecraft:air"},
|
||||||
|
{pos: [2, 3, 1], state: "minecraft:air"},
|
||||||
|
{pos: [2, 3, 2], state: "minecraft:air"},
|
||||||
|
{pos: [2, 3, 3], state: "minecraft:air"},
|
||||||
|
{pos: [2, 3, 4], state: "minecraft:air"},
|
||||||
|
{pos: [3, 3, 0], state: "minecraft:air"},
|
||||||
|
{pos: [3, 3, 1], state: "minecraft:air"},
|
||||||
|
{pos: [3, 3, 2], state: "minecraft:air"},
|
||||||
|
{pos: [3, 3, 3], state: "minecraft:air"},
|
||||||
|
{pos: [3, 3, 4], state: "minecraft:air"},
|
||||||
|
{pos: [4, 3, 0], state: "minecraft:air"},
|
||||||
|
{pos: [4, 3, 1], state: "minecraft:air"},
|
||||||
|
{pos: [4, 3, 2], state: "minecraft:air"},
|
||||||
|
{pos: [4, 3, 3], state: "minecraft:air"},
|
||||||
|
{pos: [4, 3, 4], state: "minecraft:air"},
|
||||||
|
{pos: [0, 4, 0], state: "minecraft:air"},
|
||||||
|
{pos: [0, 4, 1], state: "minecraft:air"},
|
||||||
|
{pos: [0, 4, 2], state: "minecraft:air"},
|
||||||
|
{pos: [0, 4, 3], state: "minecraft:air"},
|
||||||
|
{pos: [0, 4, 4], state: "minecraft:air"},
|
||||||
|
{pos: [1, 4, 0], state: "minecraft:air"},
|
||||||
|
{pos: [1, 4, 1], state: "minecraft:air"},
|
||||||
|
{pos: [1, 4, 2], state: "minecraft:air"},
|
||||||
|
{pos: [1, 4, 3], state: "minecraft:air"},
|
||||||
|
{pos: [1, 4, 4], state: "minecraft:air"},
|
||||||
|
{pos: [2, 4, 0], state: "minecraft:air"},
|
||||||
|
{pos: [2, 4, 1], state: "minecraft:air"},
|
||||||
|
{pos: [2, 4, 2], state: "minecraft:air"},
|
||||||
|
{pos: [2, 4, 3], state: "minecraft:air"},
|
||||||
|
{pos: [2, 4, 4], state: "minecraft:air"},
|
||||||
|
{pos: [3, 4, 0], state: "minecraft:air"},
|
||||||
|
{pos: [3, 4, 1], state: "minecraft:air"},
|
||||||
|
{pos: [3, 4, 2], state: "minecraft:air"},
|
||||||
|
{pos: [3, 4, 3], state: "minecraft:air"},
|
||||||
|
{pos: [3, 4, 4], state: "minecraft:air"},
|
||||||
|
{pos: [4, 4, 0], state: "minecraft:air"},
|
||||||
|
{pos: [4, 4, 1], state: "minecraft:air"},
|
||||||
|
{pos: [4, 4, 2], state: "minecraft:air"},
|
||||||
|
{pos: [4, 4, 3], state: "minecraft:air"},
|
||||||
|
{pos: [4, 4, 4], state: "minecraft:air"}
|
||||||
|
],
|
||||||
|
entities: [
|
||||||
|
{blockPos: [2, 1, 2], pos: [2.583196949396921d, 1.0d, 2.608974919959593d], nbt: {AbsorptionAmount: 0.0f, Air: 300s, ArmorItems: [{}, {}, {}, {}], Attributes: [{Base: 0.699999988079071d, Name: "minecraft:generic.movement_speed"}], Brain: {memories: {}}, CustomName: '{"text":"printouttest.in_frame_at_night"}', DeathTime: 0s, DisabledSlots: 0, FallDistance: 0.0f, FallFlying: 0b, Fire: -1s, HandItems: [{}, {}], Health: 20.0f, HurtByTimestamp: 0, HurtTime: 0s, Invisible: 1b, Invulnerable: 0b, Marker: 1b, Motion: [0.0d, 0.0d, 0.0d], NoBasePlate: 0b, OnGround: 0b, PortalCooldown: 0, Pos: [221.58319694939692d, -58.0d, 92.60897491995959d], Pose: {}, Rotation: [1.3504658f, 6.7031174f], ShowArms: 0b, Small: 0b, UUID: [I; 1854159985, -991539606, -1317309541, 1483112386], id: "minecraft:armor_stand"}},
|
||||||
|
{blockPos: [2, 2, 3], pos: [2.5d, 2.5d, 3.96875d], nbt: {Air: 300s, Facing: 2b, FallDistance: 0.0f, Fire: -1s, Fixed: 0b, Invisible: 0b, Invulnerable: 0b, Item: {Count: 1b, id: "computercraft:printed_page", tag: {Color0: "eeeeeeeeeeeeeeeeeeeeeeeee", Color1: "eeeeeeeeeeeeeeeeeeeeeeeee", Color10: "eeeeeeeeeeeeeeeeeeeeeeeee", Color11: "eeeeeeeeeeeeeeeeeeeeeeeee", Color12: "eeeeeeeeeeeeeeeeeeeeeeeee", Color13: "eeeeeeeeeeeeeeeeeeeeeeeee", Color14: "eeeeeeeeeeeeeeeeeeeeeeeee", Color15: "eeeeeeeeeeeeeeeeeeeeeeeee", Color16: "eeeeeeeeeeeeeeeeeeeeeeeee", Color17: "eeeeeeeeeeeeeeeeeeeeeeeee", Color18: "eeeeeeeeeeeeeeeeeeeeeeeee", Color19: "eeeeeeeeeeeeeeeeeeeeeeeee", Color2: "eeeeeeeeeeeeeeeeeeeeeeeee", Color20: "eeeeeeeeeeeeeeeeeeeeeeeee", Color3: "eeeeeeeeeeeeeeeeeeeeeeeee", Color4: "eeeeeeeeeeeeeeeeeeeeeeeee", Color5: "eeeeeeeeeeeeeeeeeeeeeeeee", Color6: "eeeeeeeeeeeeeeeeeeeeeeeee", Color7: "eeeeeeeeeeeeeeeeeeeeeeeee", Color8: "eeeeeeeeeeeeeeeeeeeeeeeee", Color9: "eeeeeeeeeeeeeeeeeeeeeeeee", Pages: 1, Text0: "If you're reading this, ", Text1: "the test failed. ", Text10: " ", Text11: " ", Text12: " ", Text13: " ", Text14: " ", Text15: " ", Text16: " ", Text17: " ", Text18: " ", Text19: " ", Text2: " ", Text20: " ", Text3: " ", Text4: " ", Text5: " ", Text6: " ", Text7: " ", Text8: " ", Text9: " ", Title: "a.lua"}}, ItemDropChance: 1.0f, ItemRotation: 0b, Motion: [0.0d, 0.0d, 0.0d], OnGround: 0b, PortalCooldown: 0, Pos: [221.5d, -56.5d, 93.96875d], Rotation: [-540.0f, 0.0f], TileX: 221, TileY: -57, TileZ: 93, UUID: [I; 1972443954, 193152445, -1823446000, -1684171214], id: "minecraft:item_frame"}}
|
||||||
|
],
|
||||||
|
palette: [
|
||||||
|
"minecraft:polished_andesite",
|
||||||
|
"minecraft:air"
|
||||||
|
]
|
||||||
|
}
|
@ -1,140 +0,0 @@
|
|||||||
{
|
|
||||||
DataVersion: 2730,
|
|
||||||
size: [5, 5, 5],
|
|
||||||
data: [
|
|
||||||
{pos: [0, 0, 0], state: "minecraft:polished_andesite"},
|
|
||||||
{pos: [0, 0, 1], state: "minecraft:polished_andesite"},
|
|
||||||
{pos: [0, 0, 2], state: "minecraft:polished_andesite"},
|
|
||||||
{pos: [0, 0, 3], state: "minecraft:polished_andesite"},
|
|
||||||
{pos: [0, 0, 4], state: "minecraft:polished_andesite"},
|
|
||||||
{pos: [1, 0, 0], state: "minecraft:polished_andesite"},
|
|
||||||
{pos: [1, 0, 1], state: "minecraft:polished_andesite"},
|
|
||||||
{pos: [1, 0, 2], state: "minecraft:polished_andesite"},
|
|
||||||
{pos: [1, 0, 3], state: "minecraft:polished_andesite"},
|
|
||||||
{pos: [1, 0, 4], state: "minecraft:polished_andesite"},
|
|
||||||
{pos: [2, 0, 0], state: "minecraft:polished_andesite"},
|
|
||||||
{pos: [2, 0, 1], state: "minecraft:polished_andesite"},
|
|
||||||
{pos: [2, 0, 2], state: "minecraft:polished_andesite"},
|
|
||||||
{pos: [2, 0, 3], state: "minecraft:polished_andesite"},
|
|
||||||
{pos: [2, 0, 4], state: "minecraft:polished_andesite"},
|
|
||||||
{pos: [3, 0, 0], state: "minecraft:polished_andesite"},
|
|
||||||
{pos: [3, 0, 1], state: "minecraft:polished_andesite"},
|
|
||||||
{pos: [3, 0, 2], state: "minecraft:polished_andesite"},
|
|
||||||
{pos: [3, 0, 3], state: "minecraft:polished_andesite"},
|
|
||||||
{pos: [3, 0, 4], state: "minecraft:polished_andesite"},
|
|
||||||
{pos: [4, 0, 0], state: "minecraft:polished_andesite"},
|
|
||||||
{pos: [4, 0, 1], state: "minecraft:polished_andesite"},
|
|
||||||
{pos: [4, 0, 2], state: "minecraft:polished_andesite"},
|
|
||||||
{pos: [4, 0, 3], state: "minecraft:polished_andesite"},
|
|
||||||
{pos: [4, 0, 4], state: "minecraft:polished_andesite"},
|
|
||||||
{pos: [0, 1, 0], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [0, 1, 1], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [0, 1, 2], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [0, 1, 3], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [0, 1, 4], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [1, 1, 0], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [1, 1, 1], state: "minecraft:air"},
|
|
||||||
{pos: [1, 1, 2], state: "minecraft:air"},
|
|
||||||
{pos: [1, 1, 3], state: "minecraft:air"},
|
|
||||||
{pos: [1, 1, 4], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [2, 1, 0], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [2, 1, 1], state: "minecraft:air"},
|
|
||||||
{pos: [2, 1, 2], state: "minecraft:air"},
|
|
||||||
{pos: [2, 1, 3], state: "minecraft:air"},
|
|
||||||
{pos: [2, 1, 4], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [3, 1, 0], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [3, 1, 1], state: "minecraft:air"},
|
|
||||||
{pos: [3, 1, 2], state: "minecraft:air"},
|
|
||||||
{pos: [3, 1, 3], state: "minecraft:air"},
|
|
||||||
{pos: [3, 1, 4], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [4, 1, 0], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [4, 1, 1], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [4, 1, 2], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [4, 1, 3], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [4, 1, 4], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [0, 2, 0], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [0, 2, 1], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [0, 2, 2], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [0, 2, 3], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [0, 2, 4], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [1, 2, 0], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [1, 2, 1], state: "minecraft:air"},
|
|
||||||
{pos: [1, 2, 2], state: "minecraft:air"},
|
|
||||||
{pos: [1, 2, 3], state: "minecraft:air"},
|
|
||||||
{pos: [1, 2, 4], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [2, 2, 0], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [2, 2, 1], state: "minecraft:air"},
|
|
||||||
{pos: [2, 2, 2], state: "minecraft:air"},
|
|
||||||
{pos: [2, 2, 3], state: "minecraft:air"},
|
|
||||||
{pos: [2, 2, 4], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [3, 2, 0], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [3, 2, 1], state: "minecraft:air"},
|
|
||||||
{pos: [3, 2, 2], state: "minecraft:air"},
|
|
||||||
{pos: [3, 2, 3], state: "minecraft:air"},
|
|
||||||
{pos: [3, 2, 4], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [4, 2, 0], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [4, 2, 1], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [4, 2, 2], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [4, 2, 3], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [4, 2, 4], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [0, 3, 0], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [0, 3, 1], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [0, 3, 2], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [0, 3, 3], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [0, 3, 4], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [1, 3, 0], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [1, 3, 1], state: "minecraft:air"},
|
|
||||||
{pos: [1, 3, 2], state: "minecraft:air"},
|
|
||||||
{pos: [1, 3, 3], state: "minecraft:air"},
|
|
||||||
{pos: [1, 3, 4], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [2, 3, 0], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [2, 3, 1], state: "minecraft:air"},
|
|
||||||
{pos: [2, 3, 2], state: "minecraft:air"},
|
|
||||||
{pos: [2, 3, 3], state: "minecraft:air"},
|
|
||||||
{pos: [2, 3, 4], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [3, 3, 0], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [3, 3, 1], state: "minecraft:air"},
|
|
||||||
{pos: [3, 3, 2], state: "minecraft:air"},
|
|
||||||
{pos: [3, 3, 3], state: "minecraft:air"},
|
|
||||||
{pos: [3, 3, 4], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [4, 3, 0], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [4, 3, 1], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [4, 3, 2], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [4, 3, 3], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [4, 3, 4], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [0, 4, 0], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [0, 4, 1], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [0, 4, 2], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [0, 4, 3], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [0, 4, 4], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [1, 4, 0], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [1, 4, 1], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [1, 4, 2], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [1, 4, 3], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [1, 4, 4], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [2, 4, 0], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [2, 4, 1], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [2, 4, 2], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [2, 4, 3], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [2, 4, 4], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [3, 4, 0], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [3, 4, 1], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [3, 4, 2], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [3, 4, 3], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [3, 4, 4], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [4, 4, 0], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [4, 4, 1], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [4, 4, 2], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [4, 4, 3], state: "minecraft:white_concrete"},
|
|
||||||
{pos: [4, 4, 4], state: "minecraft:white_concrete"}
|
|
||||||
],
|
|
||||||
entities: [
|
|
||||||
{blockPos: [2, 2, 3], pos: [2.5d, 2.5d, 3.96875d], nbt: {Air: 300s, CanUpdate: 1b, Facing: 2b, FallDistance: 0.0f, Fire: -1s, Fixed: 0b, Invisible: 0b, Invulnerable: 0b, Item: {Count: 1b, id: "computercraft:printed_page", tag: {Color0: "eeeeeeeeeeeeeeeeeeeeeeeee", Color1: "eeeeeeeeeeeeeeeeeeeeeeeee", Color10: "eeeeeeeeeeeeeeeeeeeeeeeee", Color11: "eeeeeeeeeeeeeeeeeeeeeeeee", Color12: "eeeeeeeeeeeeeeeeeeeeeeeee", Color13: "eeeeeeeeeeeeeeeeeeeeeeeee", Color14: "eeeeeeeeeeeeeeeeeeeeeeeee", Color15: "eeeeeeeeeeeeeeeeeeeeeeeee", Color16: "eeeeeeeeeeeeeeeeeeeeeeeee", Color17: "eeeeeeeeeeeeeeeeeeeeeeeee", Color18: "eeeeeeeeeeeeeeeeeeeeeeeee", Color19: "eeeeeeeeeeeeeeeeeeeeeeeee", Color2: "eeeeeeeeeeeeeeeeeeeeeeeee", Color20: "eeeeeeeeeeeeeeeeeeeeeeeee", Color3: "eeeeeeeeeeeeeeeeeeeeeeeee", Color4: "eeeeeeeeeeeeeeeeeeeeeeeee", Color5: "eeeeeeeeeeeeeeeeeeeeeeeee", Color6: "eeeeeeeeeeeeeeeeeeeeeeeee", Color7: "eeeeeeeeeeeeeeeeeeeeeeeee", Color8: "eeeeeeeeeeeeeeeeeeeeeeeee", Color9: "eeeeeeeeeeeeeeeeeeeeeeeee", Pages: 1, Text0: "If you're reading this, ", Text1: "the test failed. ", Text10: " ", Text11: " ", Text12: " ", Text13: " ", Text14: " ", Text15: " ", Text16: " ", Text17: " ", Text18: " ", Text19: " ", Text2: " ", Text20: " ", Text3: " ", Text4: " ", Text5: " ", Text6: " ", Text7: " ", Text8: " ", Text9: " ", Title: "a.lua"}}, ItemDropChance: 1.0f, ItemRotation: 0b, Motion: [0.0d, 0.0d, 0.0d], OnGround: 0b, PortalCooldown: 0, Pos: [10.5d, 7.5d, 44.96875d], Rotation: [180.0f, 0.0f], TileX: 10, TileY: 7, TileZ: 44, UUID: [I; 1043973837, -2076424529, -1762893135, -165665834], id: "minecraft:item_frame"}},
|
|
||||||
{blockPos: [2, 1, 2], pos: [2.583196949396914d, 1.0d, 2.6089749199596d], nbt: {AbsorptionAmount: 0.0f, Air: 300s, ArmorItems: [{}, {}, {}, {}], Attributes: [{Base: 0.699999988079071d, Name: "minecraft:generic.movement_speed"}], Brain: {memories: {}}, CanUpdate: 1b, CustomName: '{"text":"printouttest.in_frame_at_night"}', DeathTime: 0s, DisabledSlots: 0, FallDistance: 0.0f, FallFlying: 0b, Fire: -1s, HandItems: [{}, {}], Health: 20.0f, HurtByTimestamp: 0, HurtTime: 0s, Invisible: 1b, Invulnerable: 0b, Marker: 1b, Motion: [0.0d, 0.0d, 0.0d], NoBasePlate: 0b, OnGround: 0b, PortalCooldown: 0, Pos: [10.583196949396914d, 6.0d, 43.6089749199596d], Pose: {}, Rotation: [1.3504658f, 6.7031174f], ShowArms: 0b, Small: 0b, UUID: [I; -1917933016, 1390888530, -2109873447, -2136052677], id: "minecraft:armor_stand"}}
|
|
||||||
],
|
|
||||||
palette: [
|
|
||||||
"minecraft:polished_andesite",
|
|
||||||
"minecraft:white_concrete",
|
|
||||||
"minecraft:air"
|
|
||||||
]
|
|
||||||
}
|
|
@ -217,9 +217,10 @@ end
|
|||||||
channel. The message will be received by every device listening to rednet.
|
channel. The message will be received by every device listening to rednet.
|
||||||
|
|
||||||
@param message The message to send. This should not contain coroutines or
|
@param message The message to send. This should not contain coroutines or
|
||||||
functions, as they will be converted to @{nil}. @tparam[opt] string protocol
|
functions, as they will be converted to @{nil}.
|
||||||
The "protocol" to send this message under. When using @{rednet.receive} one can
|
@tparam[opt] string protocol The "protocol" to send this message under. When
|
||||||
filter to only receive messages sent under a particular protocol.
|
using @{rednet.receive} one can filter to only receive messages sent under a
|
||||||
|
particular protocol.
|
||||||
@see rednet.receive
|
@see rednet.receive
|
||||||
@changed 1.6 Added protocol parameter.
|
@changed 1.6 Added protocol parameter.
|
||||||
@usage Broadcast the words "Hello, world!" to every computer using rednet.
|
@usage Broadcast the words "Hello, world!" to every computer using rednet.
|
||||||
|
@ -25,6 +25,9 @@ class ItemFrameRendererMixin {
|
|||||||
)
|
)
|
||||||
@SuppressWarnings("UnusedMethod")
|
@SuppressWarnings("UnusedMethod")
|
||||||
private void render(ItemFrame entity, float yaw, float partialTicks, PoseStack pose, MultiBufferSource buffers, int light, CallbackInfo ci) {
|
private void render(ItemFrame entity, float yaw, float partialTicks, PoseStack pose, MultiBufferSource buffers, int light, CallbackInfo ci) {
|
||||||
if (ClientHooks.onRenderItemFrame(pose, buffers, entity, entity.getItem(), light)) ci.cancel();
|
if (ClientHooks.onRenderItemFrame(pose, buffers, entity, entity.getItem(), light)) {
|
||||||
|
ci.cancel();
|
||||||
|
pose.popPose();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user