@@ -4,49 +4,54 @@ import com.lambda.mixin.accessor.network.*
4
4
import net.minecraft.network.play.client.*
5
5
import net.minecraft.network.play.server.*
6
6
import net.minecraft.util.text.ITextComponent
7
+ import net.minecraft.world.storage.MapDecoration
8
+ import java.util.*
7
9
8
10
var CPacketChatMessage .chatMessage: String
9
- get() = this . message
11
+ get() = message
10
12
set(value) {
11
13
(this as AccessorCPacketChatMessage ).setMessage(value)
12
14
}
15
+ val CPacketClientSettings .view: Int
16
+ get() = (this as AccessorCPacketClientSettings ).view
13
17
14
18
val CPacketCloseWindow .windowID: Int
15
19
get() = (this as AccessorCPacketCloseWindow ).kbGetWindowID()
16
-
20
+ val CPacketConfirmTransaction .accepted: Boolean
21
+ get() = (this as AccessorCPacketConfirmTransaction ).accepted
17
22
18
23
var CPacketPlayer .playerX: Double
19
- get() = this . getX(0.0 )
24
+ get() = getX(0.0 )
20
25
set(value) {
21
26
(this as AccessorCPacketPlayer ).setX(value)
22
27
}
23
28
24
29
var CPacketPlayer .playerY: Double
25
- get() = this . getY(0.0 )
30
+ get() = getY(0.0 )
26
31
set(value) {
27
32
(this as AccessorCPacketPlayer ).setY(value)
28
33
}
29
34
30
35
var CPacketPlayer .playerZ: Double
31
- get() = this . getZ(0.0 )
36
+ get() = getZ(0.0 )
32
37
set(value) {
33
38
(this as AccessorCPacketPlayer ).setZ(value)
34
39
}
35
40
36
41
var CPacketPlayer .playerYaw: Float
37
- get() = this . getYaw(0.0f )
42
+ get() = getYaw(0.0f )
38
43
set(value) {
39
44
(this as AccessorCPacketPlayer ).setYaw(value)
40
45
}
41
46
42
47
var CPacketPlayer .playerPitch: Float
43
- get() = this . getPitch(0.0f )
48
+ get() = getPitch(0.0f )
44
49
set(value) {
45
50
(this as AccessorCPacketPlayer ).setPitch(value)
46
51
}
47
52
48
53
var CPacketPlayer .playerIsOnGround: Boolean
49
- get() = this . isOnGround
54
+ get() = isOnGround
50
55
set(value) {
51
56
(this as AccessorCPacketPlayer ).setOnGround(value)
52
57
}
@@ -63,14 +68,23 @@ var CPacketPlayer.playerRotating: Boolean
63
68
(this as AccessorCPacketPlayer ).rotating = value
64
69
}
65
70
71
+ val CPacketPlayerAbilities .flySpeed: Float
72
+ get() = (this as AccessorCPacketPlayerAbilities ).flySpeed
73
+ val CPacketPlayerAbilities .walkSpeed: Float
74
+ get() = (this as AccessorCPacketPlayerAbilities ).walkSpeed
75
+ val CPacketResourcePackStatus .action: CPacketResourcePackStatus .Action
76
+ get() = (this as AccessorCPacketResourcePackStatus ).action
77
+ val CPacketSpectate .uuid: UUID
78
+ get() = (this as AccessorCPacketSpectate ).id
79
+
66
80
var CPacketUseEntity .useEntityId: Int
67
81
get() = (this as AccessorCPacketUseEntity ).id
68
82
set(value) {
69
83
(this as AccessorCPacketUseEntity ).id = value
70
84
}
71
85
72
86
var CPacketUseEntity .useEntityAction: CPacketUseEntity .Action
73
- get() = this . action
87
+ get() = action
74
88
set(value) {
75
89
(this as AccessorCPacketUseEntity ).setAction(value)
76
90
}
@@ -85,55 +99,75 @@ var CPacketUseEntity.useEntityAction: CPacketUseEntity.Action
85
99
}
86
100
87
101
var SPacketChat .textComponent: ITextComponent
88
- get() = this . chatComponent
102
+ get() = chatComponent
89
103
set(value) {
90
104
(this as AccessorSPacketChat ).setChatComponent(value)
91
105
}
92
106
107
+ val SPacketCloseWindow .windowId: Int
108
+ get() = (this as AccessorSPacketCloseWindow ).windowId
109
+
93
110
var SPacketEntityVelocity .entityVelocityMotionX: Int
94
- get() = this . motionX
111
+ get() = motionX
95
112
set(value) {
96
113
(this as AccessorSPacketEntityVelocity ).setMotionX(value)
97
114
}
98
115
99
116
var SPacketEntityVelocity .entityVelocityMotionY: Int
100
- get() = this . motionY
117
+ get() = motionY
101
118
set(value) {
102
119
(this as AccessorSPacketEntityVelocity ).setMotionY(value)
103
120
}
104
121
105
122
var SPacketEntityVelocity .entityVelocityMotionZ: Int
106
- get() = this . motionZ
123
+ get() = motionZ
107
124
set(value) {
108
125
(this as AccessorSPacketEntityVelocity ).setMotionZ(value)
109
126
}
110
127
111
128
var SPacketExplosion .explosionMotionX: Float
112
- get() = this . motionX
129
+ get() = motionX
113
130
set(value) {
114
131
(this as AccessorSPacketExplosion ).setMotionX(value)
115
132
}
116
133
117
134
var SPacketExplosion .explosionMotionY: Float
118
- get() = this . motionY
135
+ get() = motionY
119
136
set(value) {
120
137
(this as AccessorSPacketExplosion ).setMotionY(value)
121
138
}
122
139
123
140
var SPacketExplosion .explosionMotionZ: Float
124
- get() = this . motionZ
141
+ get() = motionZ
125
142
set(value) {
126
143
(this as AccessorSPacketExplosion ).setMotionZ(value)
127
144
}
128
145
146
+ val SPacketMaps .mapScale: Byte
147
+ get() = (this as AccessorSPacketMaps ).mapScale
148
+ val SPacketMaps .trackingPosition: Boolean
149
+ get() = (this as AccessorSPacketMaps ).trackingPosition
150
+ val SPacketMaps .icons: Array <MapDecoration >
151
+ get() = (this as AccessorSPacketMaps ).icons
152
+ val SPacketMaps .minX: Int
153
+ get() = (this as AccessorSPacketMaps ).minX
154
+ val SPacketMaps .minZ: Int
155
+ get() = (this as AccessorSPacketMaps ).minZ
156
+ val SPacketMaps .columns: Int
157
+ get() = (this as AccessorSPacketMaps ).columns
158
+ val SPacketMaps .rows: Int
159
+ get() = (this as AccessorSPacketMaps ).rows
160
+ val SPacketMaps .mapDataBytes: ByteArray
161
+ get() = (this as AccessorSPacketMaps ).mapDataBytes
162
+
129
163
var SPacketPlayerPosLook .playerPosLookYaw: Float
130
- get() = this . yaw
164
+ get() = yaw
131
165
set(value) {
132
166
(this as AccessorSPacketPosLook ).setYaw(value)
133
167
}
134
168
135
169
var SPacketPlayerPosLook .playerPosLookPitch: Float
136
- get() = this . pitch
170
+ get() = pitch
137
171
set(value) {
138
172
(this as AccessorSPacketPosLook ).setPitch(value)
139
173
}
@@ -148,4 +182,23 @@ var SPacketEntityHeadLook.entityHeadLookEntityId: Int
148
182
get() = (this as AccessorSPacketEntityHeadLook ).entityId
149
183
set(value) {
150
184
(this as AccessorSPacketEntityHeadLook ).entityId = value
151
- }
185
+ }
186
+
187
+ val SPacketWorldBorder .action: SPacketWorldBorder .Action
188
+ get() = (this as AccessorSPacketWorldBorder ).action
189
+ val SPacketWorldBorder .size: Int
190
+ get() = (this as AccessorSPacketWorldBorder ).size
191
+ val SPacketWorldBorder .centerX: Double
192
+ get() = (this as AccessorSPacketWorldBorder ).centerX
193
+ val SPacketWorldBorder .centerZ: Double
194
+ get() = (this as AccessorSPacketWorldBorder ).centerZ
195
+ val SPacketWorldBorder .targetSize: Double
196
+ get() = (this as AccessorSPacketWorldBorder ).targetSize
197
+ val SPacketWorldBorder .diameter: Double
198
+ get() = (this as AccessorSPacketWorldBorder ).diameter
199
+ val SPacketWorldBorder .timeUntilTarget: Long
200
+ get() = (this as AccessorSPacketWorldBorder ).timeUntilTarget
201
+ val SPacketWorldBorder .warningTime: Int
202
+ get() = (this as AccessorSPacketWorldBorder ).warningTime
203
+ val SPacketWorldBorder .warningDistance: Int
204
+ get() = (this as AccessorSPacketWorldBorder ).warningDistance
0 commit comments