Skip to content
Success

Changes

Summary

  1. Add mount_to arg to fakespawn command (#2513) (commit: e2e883a) (details)
  2. Initial packet handlers system (#2528) (commit: e1dd239) (details)
  3. [ci-skip] Fix field naming in a few places (commit: 66e8385) (details)
  4. Update player profile packet handler (#2530) (commit: 12919ca) (details)
  5. Cleanup simple packet handlers (#2529) (commit: 5e07800) (details)
  6. Update disguise packet handler (#2535) (commit: ab355f0) (details)
  7. Add offthread_repeat arg to relative teleport command (#2533) (commit: 6013532) (details)
  8. Update fake equipment packet handler (#2537) (commit: 1992555) (details)
  9. Add `EntityTag.internal_data` mechanism (#2538) (commit: 9897530) (details)
Commit e2e883a69a68e421c5440361b8a2fc24f56f1316 by noreply
Add mount_to arg to fakespawn command (#2513)

* Add mount_to arg to fakespawn command

* Error if trying to mount_to entity that's not spawned

* PR fixes

* Update max fakespawn command args meta
(commit: e2e883a)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/scripts/commands/player/DisguiseCommand.java
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/scripts/commands/player/FakeSpawnCommand.java
The file was modifiedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/ReflectionMappingsInfo.java
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/utilities/entity/FakeEntity.java
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/nms/interfaces/PlayerHelper.java
The file was modifiedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/helpers/PlayerHelperImpl.java
Commit e1dd239bd7e788d98b7fcf12509c64049e9e167f by noreply
Initial packet handlers system (#2528)

* Part 1: packet handlers, move to separate classes

* Part 2: `!itworks` TM

* Newline at file end

* Change exception handling

* Only change the bundle packet when needed

* That's a slightly overcomplicated boolean experssion

* Remove `registerPacketHandlerForChildren`
(commit: e1dd239)
The file was modifiedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/ProfileEditorImpl.java
The file was addedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/network/handlers/packet/ProfileMirrorPacketHandlers.java
The file was modifiedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/network/handlers/DenizenNetworkManagerImpl.java
The file was addedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/network/handlers/packet/HideParticlesPacketHandlers.java
The file was addedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/network/handlers/packet/FakeBlocksPacketHandlers.java
The file was addedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/network/handlers/packet/BlockLightPacketHandlers.java
The file was addedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/network/handlers/packet/EntityMetadataPacketHandlers.java
The file was addedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/network/handlers/packet/FakeEquipmentPacketHandlers.java
The file was addedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/network/handlers/packet/HiddenEntitiesPacketHandlers.java
The file was addedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/network/handlers/packet/TablistUpdateEventPacketHandlers.java
The file was addedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/network/handlers/packet/ActionBarEventPacketHandlers.java
The file was addedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/network/handlers/packet/AttachPacketHandlers.java
The file was addedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/network/handlers/packet/DenizenPacketHandlerPacketHandlers.java
The file was addedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/network/handlers/packet/PlayerHearsSoundEventPacketHandlers.java
The file was addedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/network/handlers/packet/FakePlayerPacketHandlers.java
The file was addedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/network/handlers/packet/DisguisePacketHandlers.java
Commit 66e83858d4011998b8f31111c5cb6455326f9d20 by 31237389+tal5
[ci-skip] Fix field naming in a few places
(commit: 66e8385)
The file was modifiedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/network/handlers/DenizenNetworkManagerImpl.java
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/events/entity/EntityPicksUpItemScriptEvent.java
Commit 12919ca43e07fbb2261b050d859d5c0c4a568ee5 by noreply
Update player profile packet handler (#2530)

* Step 1: use `ProfileEditorImpl` directly

* Step 2: properly return the modified packet
(commit: 12919ca)
The file was modifiedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/ProfileEditorImpl.java
The file was modifiedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/network/handlers/DenizenNetworkManagerImpl.java
The file was removedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/network/handlers/packet/ProfileMirrorPacketHandlers.java
Commit 5e0780041d09bae9d8e9b4ee70f1e98a52a839f0 by noreply
Cleanup simple packet handlers (#2529)

* Cleanup simple packet handlers

* Simplify fake player packet handler

* Minor actionbar handler cleanup

* Remove legacy `id != -1` check
(commit: 5e07800)
The file was modifiedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/network/handlers/packet/FakePlayerPacketHandlers.java
The file was modifiedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/network/handlers/packet/BlockLightPacketHandlers.java
The file was modifiedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/network/handlers/packet/HideParticlesPacketHandlers.java
The file was modifiedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/network/handlers/packet/ActionBarEventPacketHandlers.java
Commit ab355f08045ddfd625bcfe0788c02fa6f3b782a4 by noreply
Update disguise packet handler (#2535)

* Initial cleanup + split

* Cleanup entity getting

* Cleanup general handling

* Cleanup entity data handling

* Cleanup attributes packet handling

* Cleanup reflection usage

* Cleanup disguise sending
(commit: ab355f0)
The file was modifiedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/network/handlers/packet/DisguisePacketHandlers.java
The file was modifiedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/helpers/PacketHelperImpl.java
Commit 6013532c94cb9347dc63b3c9ca6f53e079167c4f by noreply
Add offthread_repeat arg to relative teleport command (#2533)

* Add offthread_repeat arg to relative teleport command

* Add offthread_yaw/pitch to new teleport offthread_repeat options

* Meta fixes

* Send initial packet then do repeats instead of waiting first
(commit: 6013532)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/nms/interfaces/PacketHelper.java
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/scripts/commands/entity/TeleportCommand.java
The file was modifiedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/helpers/PacketHelperImpl.java
Commit 199255525a6023726ceb25f666971dc87a33f370 by noreply
Update fake equipment packet handler (#2537)

* Initial method split

* Update equipment packet handling

* Cleanup entity event packet handling

* Cleanup set content packet handling

* Cleanup set slot packet handling

* Cleanup getting the main hand slot

* Make `getMainHandSlot` take a player
(commit: 1992555)
The file was modifiedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/impl/network/handlers/packet/FakeEquipmentPacketHandlers.java
Commit 9897530e77ffc240b7f408d8ed246e037b0b45d9 by noreply
Add `EntityTag.internal_data` mechanism (#2538)

* Add `EntityTag.internal_data` mechanism

* `setInternalEntityData` -> `modify`

* Add name -> internal ID mapping

* Update meta

* Remove newline

* Fallback to parsing as int
(commit: 9897530)
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/nms/interfaces/EntityHelper.java
The file was modifiedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/ReflectionMappingsInfo.java
The file was modifiedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/Handler.java
The file was modifiedplugin/src/main/java/com/denizenscript/denizen/objects/EntityTag.java
The file was addedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/helpers/EntityDataNameMapper.java
The file was modifiedv1_20/src/main/java/com/denizenscript/denizen/nms/v1_20/helpers/EntityHelperImpl.java