This repository was archived by the owner on Jan 17, 2026. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -94,19 +94,19 @@ In order for ViaLoadingBase to find the compression handler in the pipeline, the
9494## API examples:
9595ViaLoadingBase also offers a system to compare the target version with other versions:
9696``` java
97- if (ViaLoadingBase . getClassWrapper (). getTargetVersion(). isOlderThan(ProtocolVersion . v1_8)) {
97+ if (ViaLoadingBase . getInstance (). getTargetVersion(). isOlderThan(ProtocolVersion . v1_8)) {
9898 // Code is executed when the target version is < than 1.8
9999}
100- if (ViaLoadingBase . getClassWrapper (). getTargetVersion(). isOlderThanOrEqualTo(ProtocolVersion . v1_16_4)) {
100+ if (ViaLoadingBase . getInstance (). getTargetVersion(). isOlderThanOrEqualTo(ProtocolVersion . v1_16_4)) {
101101 // Code is executed when the target version is < = than 1.16.4
102102}
103- if (ViaLoadingBase . getClassWrapper (). getTargetVersion(). isNewerThan(ProtocolVersion . v1_12_2)) {
103+ if (ViaLoadingBase . getInstance (). getTargetVersion(). isNewerThan(ProtocolVersion . v1_12_2)) {
104104 // Code is executed when the target version is > than 1.12.2
105105}
106- if (ViaLoadingBase . getClassWrapper (). getTargetVersion(). isNewerThanOrEqualTo(ProtocolVersion . v1_14_4)) {
106+ if (ViaLoadingBase . getInstance (). getTargetVersion(). isNewerThanOrEqualTo(ProtocolVersion . v1_14_4)) {
107107 // Code is executed when the target version is > = than 1.14.4
108108}
109- if (ViaLoadingBase . getClassWrapper (). getTargetVersion(). isEqualTo(ProtocolVersion . v1_10)) {
109+ if (ViaLoadingBase . getInstance (). getTargetVersion(). isEqualTo(ProtocolVersion . v1_10)) {
110110 // Code is executed when the target version is equal to 1.10
111111}
112112```
You can’t perform that action at this time.
0 commit comments