Skip to content

Commit 4d3ed7d

Browse files
committed
更新对应新版本的粒子示例
1 parent 147ed91 commit 4d3ed7d

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,11 @@ class TestParticleGroup(private val bindPlayer: ServerPlayerEntity) :
205205
"bindUUID" to ParticleControlerDataBuffers.uuid(bindPlayer.uuid)
206206
)
207207
}
208+
209+
override fun getClientType(): Class<out ControlableParticleGroup>{
210+
return TestGroupClient::class.java
211+
}
212+
208213
}
209214
```
210215

@@ -213,7 +218,6 @@ class TestParticleGroup(private val bindPlayer: ServerPlayerEntity) :
213218
```kotlin
214219
val serverGroup = TestParticleGroup(user as ServerPlayerEntity)
215220
ServerParticleGroupManager.addParticleGroup(
216-
TestGroupClient::class.java,
217221
// world必须是ServerWorld
218222
serverGroup, user.pos, world as ServerWorld
219223
)

0 commit comments

Comments
 (0)