ChestPreview 1.0.12
Paper 26.2 plugin that renders container previews as client-only ItemDisplay packets.
PacketEvents is bundled
ChestPreview 1.0.11 shades PacketEvents 2.13.0 into the release JAR. A separate PacketEvents plugin is not required.
The build follows PacketEvents' bundling guidance and relocates the bundled libraries into ChestPreview's private namespace:
com.github.retrooper->nl.timfalken.chestpreview.libs.packeteventsio.github.retrooper->nl.timfalken.chestpreview.libs.packeteventsnet.kyori->nl.timfalken.chestpreview.libs.kyoricom.google.gson->nl.timfalken.chestpreview.libs.gsonorg.bstats->nl.timfalken.chestpreview.libs.bstats
PacketEvents is initialized by ChestPreview itself:
onLoad(): build +load()onEnable():init()onDisable():terminate()
The embedded PacketEvents update checker is disabled.
Build
Use Gradle with a version compatible with Shadow 9.3.1, then run:
gradle shadowJar
or your CI's existing shadowJar task.
The output is:
build/libs/ChestPreview-1.0.11.jar
Do not use minimize() for this build; PacketEvents warns that minimization can cause classloading issues.
Source
| 1 | # ChestPreview 1.0.12 |
| 2 | |
| 3 | Paper 26.2 plugin that renders container previews as client-only ItemDisplay packets. |
| 4 | |
| 5 | ## PacketEvents is bundled |
| 6 | |
| 7 | ChestPreview 1.0.11 shades PacketEvents 2.13.0 into the release JAR. A separate PacketEvents plugin is not required. |
| 8 | |
| 9 | The build follows PacketEvents' bundling guidance and relocates the bundled libraries into ChestPreview's private namespace: |
| 10 | |
| 11 | - `com.github.retrooper` -> `nl.timfalken.chestpreview.libs.packetevents` |
| 12 | - `io.github.retrooper` -> `nl.timfalken.chestpreview.libs.packetevents` |
| 13 | - `net.kyori` -> `nl.timfalken.chestpreview.libs.kyori` |
| 14 | - `com.google.gson` -> `nl.timfalken.chestpreview.libs.gson` |
| 15 | - `org.bstats` -> `nl.timfalken.chestpreview.libs.bstats` |
| 16 | |
| 17 | PacketEvents is initialized by ChestPreview itself: |
| 18 | |
| 19 | - `onLoad()`: build + `load()` |
| 20 | - `onEnable()`: `init()` |
| 21 | - `onDisable()`: `terminate()` |
| 22 | |
| 23 | The embedded PacketEvents update checker is disabled. |
| 24 | |
| 25 | ## Build |
| 26 | |
| 27 | Use Gradle with a version compatible with Shadow 9.3.1, then run: |
| 28 | |
| 29 | ```bash |
| 30 | gradle shadowJar |
| 31 | ``` |
| 32 | |
| 33 | or your CI's existing `shadowJar` task. |
| 34 | |
| 35 | The output is: |
| 36 | |
| 37 | ```text |
| 38 | build/libs/ChestPreview-1.0.11.jar |
| 39 | ``` |
| 40 | |
| 41 | Do not use `minimize()` for this build; PacketEvents warns that minimization can cause classloading issues. |