File tree Expand file tree Collapse file tree
src/main/java/org/example/module Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,9 +28,9 @@ public PacketHandlerCodec registerServerPacketHandlerCodec() {
2828 .state (ProtocolState .GAME , PacketHandlerStateCodec .serverBuilder ()
2929 // packet classes can and will change between MC versions
3030 // if you want to have packet handlers you probably need separate plugin builds for each MC version
31- .registerInbound (ClientboundSetEntityDataPacket .class , new GlowingEntityMetadataPacketHandler ())
31+ .inbound (ClientboundSetEntityDataPacket .class , new GlowingEntityMetadataPacketHandler ())
3232 // or with in-line lambda:
33- // .registerOutbound (ClientboundSetEntityDataPacket.class, (packet, session) -> {
33+ // .outbound (ClientboundSetEntityDataPacket.class, (packet, session) -> {
3434// ...more impl...
3535// return packet;
3636// })
You can’t perform that action at this time.
0 commit comments