Commit Graph

4831 Commits

Author SHA1 Message Date
mworzala
c3a9841967 fix: link to correct wikivg packet
(cherry picked from commit aa2c820e40)
2024-02-09 14:27:43 -05:00
Mallory Hayr
b5dc662262 Add missing inventory properties
(cherry picked from commit 600429e7d6)
2024-02-09 14:27:43 -05:00
DeidaraMC
35f9489280 update: infinite potion duration support (#106)
* upgrade: infinite potion duration

* fix: no more aqgit

---------

Co-authored-by: mworzala <mattheworzala@gmail.com>
(cherry picked from commit bb4d925ec4)
2024-02-09 14:27:43 -05:00
rockquiet
c421971eaa fix typo in builtin command conditions (#115)
(cherry picked from commit 3be7b09b7d)
2024-02-09 14:27:43 -05:00
mworzala
9aa34529a9 fix: smithing table has 4 slots, not 3
(cherry picked from commit 6a19940b4d)
2024-02-09 14:27:43 -05:00
mworzala
84a1150afe fix: update advancement packet to 1.20.4
(cherry picked from commit 03ef3e2374)
2024-02-09 14:27:43 -05:00
mworzala
6be9ba629e fix: reenable metadata on exiting configuration
(cherry picked from commit 3bbdb1f0c9)
2024-02-09 14:27:43 -05:00
mworzala
8fafe723ae feat: add properties to configure chunk queue
(cherry picked from commit a910ce359d)
2024-02-09 14:27:43 -05:00
mworzala
d7abff5c43 feat: conform to Adventure resource pack API, remove Minestom resource pack types
(cherry picked from commit 40ac94d092)
2024-02-09 14:27:43 -05:00
mworzala
6f30edb411 feat: implement 1.20.2 client-rate-limited chunk batching
(cherry picked from commit e24cb62583)
2024-02-09 14:27:43 -05:00
DeidaraMC
0bb237f737 explosion packet fix, add bundle packet, rename tick rate packet to match wiki.vg (#103)
* packet fixes

* explosion packet touchup

(cherry picked from commit d576228655)
2024-02-09 14:27:43 -05:00
GreatWyrm
6f6a54857e Update block interact event, and add some clarifying Javadocs on what blockItemUse method does (#102)
(cherry picked from commit dfe892aa1a)
2024-02-09 14:27:43 -05:00
GreatWyrm
20bd56ebca Fix block entity data not being resent when a block break event was cancelled (#101)
(cherry picked from commit 2d5fa3a7c7)
2024-02-09 14:27:43 -05:00
DeidaraMC
a5b21c48fd fix incorrect skin layer setting (#100)
This seems to be the right place to send the metadata without interfering with the configuration state

(cherry picked from commit 8c3478beca)
2024-02-09 14:27:43 -05:00
Matt Worzala
58b550c5ff Fix testing (v2) (#99)
* Fix Minecraft changes since 1.19 (Block.GRASS, recipe packet, DamageType.VOID)

* Add packets in play state

* Fix some tests via TestConnectionImpl and API changes

* fix: add some missing entity metas, group projectiles

---------

Co-authored-by: GoldenStack <goldenfire64yt@gmail.com>
(cherry picked from commit 89a665fdf5)
2024-02-09 14:27:43 -05:00
DeidaraMC
ed13961e90 new scoreboard protocol number format conformance (#98)
* new scoreboard protocol conformance

* fix: pass number format through when reading scoreboard packet

---------

Co-authored-by: mworzala <mattheworzala@gmail.com>
(cherry picked from commit 2003f75f1f)
2024-02-09 14:27:43 -05:00
mworzala
e6e16a7a08 fix: do not send login disconnect packet before switching to login state
(cherry picked from commit 6d5b1ea77e)
2024-02-09 14:27:43 -05:00
mworzala
c9ee2b56b2 chore: revert (mostly) ConnectionManager#getOnlinePlayers change
(cherry picked from commit 8859af87ba)
2024-02-09 14:27:43 -05:00
mworzala
d72e56b4be fix: begin join game sequence only after client acks configuration finish
(cherry picked from commit 197daae608)
2024-02-09 14:27:43 -05:00
mworzala
efc0620afe fix: add missing resource pack status events
(cherry picked from commit 89c57bfac6)
2024-02-09 14:27:43 -05:00
mworzala
ef2b5e03bc fix: send LEVEL_CHUNKS_LOAD_START state on all instance changes, not just first join
(cherry picked from commit 1813cdb1a8)
2024-02-09 14:27:43 -05:00
mworzala
055b927bca upgrade: minor fixes, disable some scoreboard stuff temporarily
(cherry picked from commit db28c44b40)
2024-02-09 14:27:43 -05:00
mworzala
5de3436c71 upgrade: 1.20.4 data, most missing packets
(cherry picked from commit dc6a6089f1)
2024-02-09 14:27:43 -05:00
mworzala
6416e8e441 upgrade: first join
(cherry picked from commit ed06d71ac8)
2024-02-09 14:27:43 -05:00
mworzala
772b484864 upgrade: NBT chat component serializer implementation
(cherry picked from commit ed240d6f14)
2024-02-09 14:27:43 -05:00
mworzala
fad5537017 chore: use common function to generate invalid state errors
(cherry picked from commit 7e47136f28)
2024-02-09 14:27:43 -05:00
MelonHell
aea1872f4b throw IllegalArgumentException on wrong ConnectionState
(cherry picked from commit 2643c4dec3cb7a5960e88fd662cddd81ff39fbfc)
(cherry picked from commit 01ca4969d8)
2024-02-09 14:27:43 -05:00
mworzala
1b286979c5 chore: minor cleanup
(cherry picked from commit ac4c54731c)
2024-02-09 14:27:43 -05:00
MelonHell
a588e2a652 Fix #76 (#81)
(cherry picked from commit 8fcb53e498)
2024-02-09 14:27:43 -05:00
MelonHell
787c56126e Fix shulker meta (#80)
(cherry picked from commit d798a8128e)
2024-02-09 14:27:43 -05:00
mworzala
1ffb46c3b2 fix: correct display pos/rot interpolation metadata index, minor cleanup
(cherry picked from commit ccdc5535e3)
2024-02-09 14:27:43 -05:00
mworzala
e2d6439037 fix: add new display entity metadata for position/rotation interpolation
(cherry picked from commit 0665f17c33)
2024-02-09 14:27:43 -05:00
mworzala
43baf51d8d fix: assume viewable storage is only used for play packets
(cherry picked from commit 9c1781b722)
2024-02-09 14:27:43 -05:00
mworzala
a0d87f2e91 fix: remove apiNote javadoc tags
(cherry picked from commit daf3e68cc8)
2024-02-09 14:27:43 -05:00
mworzala
bd58b1b9f6 feat: cleanup, remove ConnectionManager#getOnlinePlayers
(cherry picked from commit 8a75e9e986)
2024-02-09 14:27:43 -05:00
mworzala
814f739116 feat: player spawning fixes
(cherry picked from commit 50b868229a)
2024-02-09 14:27:43 -05:00
mworzala
d4754c1f1d feat: working (scuffed) reentry after reconfiguration
(cherry picked from commit 3ad490356a)
2024-02-09 14:27:43 -05:00
mworzala
b9c2d42696 feat: start reentry of config phase
(cherry picked from commit e702c09f06)
2024-02-09 14:27:43 -05:00
mworzala
f4176da37a chore: javadoc updates
(cherry picked from commit fd82eaed82)
2024-02-09 14:27:43 -05:00
mworzala
56f2ec46df chore: experiment with publishing snapshots from PR branches
(cherry picked from commit 390579f3ba)
2024-02-09 14:27:43 -05:00
mworzala
d324d47cab chore: remove some unnecessary logging
(cherry picked from commit b04fca8e7f)
2024-02-09 14:27:43 -05:00
mworzala
5caffb134c feat: add AsyncPlayerConfigurationEvent, remove PlayerLoginEvent
(cherry picked from commit 1161fbf1b1)
2024-02-09 14:27:43 -05:00
mworzala
bad9e80c88 chore: other melonhell pr changes
(cherry picked from commit 266040cfa7)
2024-02-09 14:27:43 -05:00
mworzala
9439b62ff0 chore: port DamageType cleanup change from MelonHell 1.19.4 PR
(cherry picked from commit 9eab3d4f8b)
2024-02-09 14:27:43 -05:00
mworzala
d0ace48220 feat: use nextState on packet write to change states to ensure proper synchronization
(cherry picked from commit d502a4fa62)
2024-02-09 14:27:43 -05:00
mworzala
89f9b0d513 first join
(cherry picked from commit 47042abf12)
2024-02-09 14:27:43 -05:00
mworzala
183159c85d finish configuration phase, ish
(cherry picked from commit 13edf5f863)
2024-02-09 14:27:43 -05:00
mworzala
2f85ce0231 stable configuration state join
(cherry picked from commit 465af0e051)
2024-02-09 14:27:43 -05:00
Tyreece Rozycki
2b236b441c fixes recipes for 1.20.1 (and probably 1.20.4) (#95)
* fixes recipes for 1.20.1 (and probably 1.20.4)

* add support for smithing trims and transforms

(cherry picked from commit 78cb62fa72)
2024-02-09 14:27:43 -05:00
MrBretzel
0920b90195 Add more method to Entity for PotionEffect (#85)
(cherry picked from commit 8edc9981d0)
2024-02-09 14:27:43 -05:00
mworzala
6a246d2ce4 fix(hack): disable scaffolding from bounding box checks in player pose updates
(cherry picked from commit 2f3eeb5c2d)
2024-02-09 14:27:43 -05:00
mworzala
1c141e34c1 fix: allow placing at min y level
(cherry picked from commit 1554487748)
2024-02-09 14:27:43 -05:00
mworzala
6d229a0601 fix: ack block use when interacting but not placing.
(cherry picked from commit a22d769740)
2024-02-09 14:27:43 -05:00
mworzala
58c03cc8d2 fix: ensure block placements can only happen inside the world border
(cherry picked from commit 0c5a177281)
2024-02-09 14:27:43 -05:00
mworzala
9b794c2077 fix: re-fix the shape parsing issue
(cherry picked from commit d217e4d5b1)
2024-02-09 14:27:43 -05:00
mworzala
271e3f4e91 fix: correctly handle clientside single block replacement
(cherry picked from commit 219f52bd58)
2024-02-09 14:27:43 -05:00
mworzala
f4a123192b fix: bad collision shape parsing
(cherry picked from commit 666bb98957)
2024-02-09 14:27:43 -05:00
mworzala
cb7014b2eb feat: add experimental player pose update logic
(cherry picked from commit d8ef618d08)
2024-02-09 14:27:43 -05:00
hapily04
ddcfccd7dd Entity Position Sync fix (#72)
(cherry picked from commit 2c4fbf4964)
2024-02-09 14:27:43 -05:00
hapily04
8d117164f6 Proper sound seeding (#74)
Co-authored-by: iam <iam4722202468@users.noreply.github.com>
(cherry picked from commit 9e2a200243)
2024-02-09 14:27:43 -05:00
hapily04
066eeda6dd Concurrent Modification Fix (#73)
Co-authored-by: iam <iam4722202468@users.noreply.github.com>
(cherry picked from commit eaf3d5311c)
2024-02-09 14:27:43 -05:00
mworzala
b7e3b40147 fix: update RespawnPacket to use dataToKeep bitset
(cherry picked from commit e146a9393e)
2024-02-09 14:27:43 -05:00
mworzala
941390fb87 fix: send empty NBT tag on items without NBT data (fixes #66)
(cherry picked from commit 5bcc72b911)
2024-02-09 14:27:43 -05:00
GoldenStack
061c2c98f1 hollow-cube/remove-default-damage-behaviour (#64)
* Remove automatic void damage

* Remove automatic fire damage

(cherry picked from commit 517b195b5e)
2024-02-09 14:27:43 -05:00
Samuel
7174ce2b21 hollow-cube/editentitymeta_function (#62)
* Add editEntityMeta

* Log entityType instead

* finally

(cherry picked from commit 30699ec3fd)
2024-02-09 14:27:43 -05:00
Samuel
b1b33b9df8 hollow-cube/entity-despawn-hooks (#63)
* Add Entity::despawn

* Clarify that despawn() is not at risk of being ignored

* Make despawn() protected

(cherry picked from commit 9e27053b15)
2024-02-09 14:27:43 -05:00
iam
926871c86e hollow-cube/lighting-join-patch (#56)
(cherry picked from commit 010fe985bb)
2024-02-09 14:27:43 -05:00
Spanner
2be361448f Fix empty command chain causing NullPointerException (#1931)
* Fix empty command chain causing NullPointerException

* Add test for empty command input

(cherry picked from commit 3645d4311d)
(cherry picked from commit e2efdbb427)
2024-02-09 14:27:43 -05:00
Matt Worzala
6805c903f3 hollow-cube/command-parser-fixes (#54)
* Rewrite CommandParserImpl recursively (fix #1327)

* Fix for tests: CommandManagerTest, CommandParseTest

* Make attributes final inside Chain

* fix #1295 with argument type priority

* Don't include command name in list of arguments

* Add test for #1327

* Add test for #1295

* Fix suggestions with bad syntax

* Fix #1916

* Add test for #1916

* add failing test

* mess with arg order

* Fix `GraphImpl` causing syntax order issues

---------

Co-authored-by: Spanner <spanner77@protonmail.com>

(cherry picked from commit e9d0098418)
2024-02-09 14:27:43 -05:00
mworzala
351d2197b1 collect all server options in ServerFlag file, other minor changes 2024-02-09 14:27:43 -05:00
mworzala
5929b811ec return terminal 2024-02-09 14:27:43 -05:00
David Mayr
9bb412c34f hollow-cube/entity-metadata-patches (#35)
* feat: add more boat types

* feat: goat horn api

* feat: pillager crossbow meta

* feat: use boat metadata for chestboat

* feat: add warden meta

* fix: incorrect dolphin meta

* feat: allow to set null values for tounge target

* feat: nullable tounge target

* fix: update max offset in goat

(cherry picked from commit 34558e75ee)
2024-02-09 14:27:43 -05:00
mworzala
4ece2aa378 hollow-cube/1_20-advancement-packet-fix
(cherry picked from commit 1f87f26b4f)
2024-02-09 14:27:43 -05:00
Matt Worzala
c657be553f hollow-cube/prevent-block-placement-outside-world (#42)
* Prevent block place above 320

(cherry picked from commit d226c3994a)

* Move position of check

(cherry picked from commit ff7c4c108f)

* Add unit test

(cherry picked from commit 68500bf0d0)

* Add min y check

(cherry picked from commit 0ce77673a9)

---------

Co-authored-by: nucker <nuckermail@gmail.com>
(cherry picked from commit 8da8a70342)
2024-02-09 14:27:43 -05:00
Matt Worzala
ccb7a81dc9 hollow-cube/fix-riptide-animation (#44)
Co-authored-by: TogAr2 <59421074+TogAr2@users.noreply.github.com>
(cherry picked from commit d901eaaed1)
2024-02-09 14:27:43 -05:00
Matt Worzala
edf7b870c7 hollow-cube/add-gamemodechangeevent-and-fix-game-profile (#43)
* Resolve some todos and add connection.setProfile to EncryptionResponsePacket

* Add PlayerGameModeChangeEvent

(cherry picked from commit 1514d8ac1f)

* Add unit tests

(cherry picked from commit 9685e74f3b)

---------

Co-authored-by: GreatWyrm <alecmusante@gmail.com>
Co-authored-by: NxDs <7994264+NxDs@users.noreply.github.com>
(cherry picked from commit 2c567696ac)
2024-02-09 14:27:43 -05:00
Matt Worzala
9899f480b6 hollow-cube/display-name-and-team-fixes (#40)
* Update Player.java

* Remove useless team creation packets

* Send display names to new players

* Oops

* Add display name test

* Change to act

* Do not send display name if they do not have one

---------

Co-authored-by: emortaldev <me@emortal.dev>
(cherry picked from commit ab35ab0587)
2024-02-09 14:27:43 -05:00
Matt Worzala
802f72aa0d hollow-cube/biome-manager-concurrency (#39)
Co-authored-by: tahmid-23 <60953955+tahmid-23@users.noreply.github.com>

See https://github.com/Minestom/Minestom/pull/1917

(cherry picked from commit ef37e40cd8)
2024-02-09 14:27:43 -05:00
iam
c616b3498a hollow-cube/lighting-memory-reduction
Lighting reduce memory + Fix lighting not sending + Performance (#31)

* Reduce memory

* Clone

* Executor pool + cleanup

* Cleanup

* Don't batch, it's slower

* Parallel chunk loading for test

* Check below chunk 6. Sky light data doesn't appear to be saved above the highest point in the chunk height map.

* Fix weird locking

* ඞ

* Fix test

* Fix indentation

* Use short instead of int

* Use short instead of int

* Start removing borders

* Borders gone

* Cleanup

* Cleanup

* Remove borders fully - Still needs cleanup

* Cleanup 1

* Cleanup 2

* Cleanup 3

* Cleanup 4

* Cache

* Performance

* Performance

* Cleanup

* Cleanup

* Refactor

* Cleanup from self-review

(cherry picked from commit 12aa1e6b7b)
2024-02-09 14:27:43 -05:00
David Mayr
91a902afb3 hollow-cube/missing-pose-sitting
(cherry picked from commit 65254e919d)
2024-02-09 14:27:43 -05:00
mworzala
0208ce8193 hollow-cube/entity-teleport-head-fix
(cherry picked from commit 4da527c25a)
2024-02-09 14:27:43 -05:00
mworzala
ef075bec3f hollow-cube/block-update-changes
(cherry picked from commit 74ca1041f3)
2024-02-09 14:27:43 -05:00
mworzala
bb6a93da89 hollow-cube/prevent-block-updates
(cherry picked from commit 55a1349049)
2024-02-09 14:27:43 -05:00
mworzala
7a374a5079 hollow-cube/fix-entity-metadata-translation
(cherry picked from commit d47db72421)
2024-02-09 14:27:43 -05:00
mworzala
f6c91085b6 hollow-cube/dimension-names-part-2
(cherry picked from commit 3dbf364340)
2024-02-09 14:27:43 -05:00
mworzala
c733016d9e hollow-cube/dimension-change-part-2
(cherry picked from commit b9ce08a509)
2024-02-09 14:27:43 -05:00
mworzala
b4c41adb7d hollow-cube/dimension-names
(cherry picked from commit 7493b640b7)
2024-02-09 14:27:43 -05:00
mworzala
5413f9c98f hollow-cube/fix-slow-dimension-change
(cherry picked from commit 388dbf71b9)
2024-02-09 14:27:43 -05:00
mworzala
37f6877b0a hollow-cube/block-handler-in-chunk-setblock
(cherry picked from commit 54e839e58a)
2024-02-09 14:27:43 -05:00
mworzala
f31b74a386 hollow-cube/chunk-sending-rate-config
(cherry picked from commit a981bd78ff)
2024-02-09 14:27:43 -05:00
iam
7cce1aa479 hollow-cube/projectile-physics-improvements
* Add better protectiles

* Cleanup

* better physics

* Add filter

* Update EntityCollision.java

* Negate filter check

(cherry picked from commit 0400e2dda4)
2024-02-09 14:27:43 -05:00
iam
b32146a316 hollow-cube/lighting-update-2
Delay light sending, send lighting slower, fix sending multiple times

---------

Co-authored-by: mworzala <mattheworzala@gmail.com>
(cherry picked from commit 8a5c610b7b)
2024-02-09 14:27:43 -05:00
mworzala
4a261c365c hollow-cube/material-in-replacement-rule
(cherry picked from commit 438338381e)
2024-02-09 14:27:43 -05:00
mworzala
f019fe69d0 hollow-cube/respectful-chunk-sending
(cherry picked from commit 9f3ee89506)
2024-02-09 14:27:43 -05:00
mworzala
a18485e61e hollow-cube/block-interact-ack-fix
(cherry picked from commit 1f1a2bf196)
2024-02-09 14:27:43 -05:00
Matt Worzala
969e0d6643 hollow-cube/1.20
* initial 1.20 support

* test fixes

* anvil 1.20, 1.20.1

(cherry picked from commit 716f32972a)
2024-02-09 14:27:43 -05:00
Matt Worzala
128c525b7c hollow-cube/placement-rule-improvement
* improve placement rule api and remove existing vanilla rules

* readme changes

(cherry picked from commit b0b640ccd7)
2024-02-09 14:27:43 -05:00
mworzala
7c60e06e35 oopsie woopsie
(cherry picked from commit 197371a35e)
2024-02-09 14:27:43 -05:00
mworzala
2f6941c68e iam fix to lighting
(cherry picked from commit 8ff6339365)
2024-02-09 14:27:43 -05:00
mworzala
3408df73f8 fix 1.19.4 text display text opacity type
(cherry picked from commit e142a55f51)
2024-02-09 14:27:43 -05:00
iam
3a18235679 More aggressive lighting delay, resend neighbour lighting data after chunk generation (#16)
(cherry picked from commit 9c6cb1796c)
2024-02-09 14:27:43 -05:00
iam4722202468
7b7f0308aa Fix flexible palette out of bounds
(cherry picked from commit 5afce81de5)
2024-02-09 14:27:43 -05:00
iam
912fb34f17 hollow-cube/lighting (#13)
* Lighting

* Remove invalidate

* Private

* Fix chunk loading

* Small fixes

* Fix loading light from anvil world

* Fix solid

* Temporary

* Fix tests, add seagrass and tall seagrass to diffusion list

* Make test faster, replace hephaistos

* Cleanup

* Assume failed test

* Fix chunk not getting invalidated

(cherry picked from commit f13a7b49fa)
2024-02-09 14:27:43 -05:00
Matt Worzala
036e0b5ea3 hollow-cube/1.19.4_2 (#14)
* oopsie woopsie

* use double vector

* fix `minecraft:time` argument min property

(cherry picked from commit 6f11e42d46)
2024-02-09 14:27:43 -05:00
Matt Worzala
8f1f7e127d 1.19.4 (#11)
* first join

* add new entities

* fix type on interpolation duration

* switch long to var long

* switch long to var long, round 2

* add flags to TextDisplay

* 1.19.4

* setView in Entity#teleport

* do not trigger touchTick if entity physics are disabled

* Add new 1.19.4 packets

* constant expr

* no localhost on github actions

* yoinked changes from 1.19.3 main

* update to forked changes

* remove potion command

* remove potion command

---------

Co-authored-by: GreatWyrm <alecmusante@gmail.com>

(cherry picked from commit 7f3144337d)
2024-02-09 14:27:43 -05:00
Huynh Tien
b18eac80a4 hollow-cube/generic-projectile-generator-for-ranged-attack (#9)
* general ProjectileGenerator for RangedAttackGoal

Let the users create any Entity as projectile (not just EntityProjectile)

* disable server address tests in github actions

---------

Co-authored-by: mworzala <mattheworzala@gmail.com>
(cherry picked from commit d411c271cf)
2024-02-09 14:27:43 -05:00
emortaldev
8a6a8f0050 hollow-cube/distance-squared-optimization
* Use distance squared where possible

* Update EntityFinder.java

* Update FollowTargetGoal.java

* Consistent methods for squared

(cherry picked from commit 4e0bc47429)
2024-02-09 14:27:43 -05:00
mworzala
8335afdf47 hollow-cube/sender-in-command-arg-parsing
Signed-off-by: mworzala <mattheworzala@gmail.com>

fix default argument issue

(cherry picked from commit a7440639c8541faeb91155c53ce3a1f4d60df127)

Add sender to command parse chain

(cherry picked from commit 853307891d178abdc7036f8c809c52909cdca327)

(cherry picked from commit 1268cf16c0)
2024-02-09 14:27:43 -05:00
mworzala
351000e2cb hollow-cube/multiple-event-node-parents
Signed-off-by: mworzala <mattheworzala@gmail.com>

add `minestom.event.multiple-parents`

(cherry picked from commit 26b79904a6fcbce2459d12ae8165d47dd2c8f1b3)

(cherry picked from commit 560b5cb52d)
2024-02-09 14:27:43 -05:00
mworzala
e2b5fbd054 hollow-cube/tag-transient
Signed-off-by: mworzala <mattheworzala@gmail.com>

allow null tag entries

(cherry picked from commit 0a57fd346bcb8bb966f866b6943fb2e57845c110)

allow null tag entries

(cherry picked from commit 3ef62831603163c2ac13432e3f2dd8ffebfb5fef)

add Tag.Transient

(cherry picked from commit 9fbbe563c2dce1418a66d2ed8695a4309807c084)

(cherry picked from commit 207b658bcd)
2024-02-09 14:27:43 -05:00
mworzala
30650f9a29 hollow-cube/custom-component-translator
Signed-off-by: mworzala <mattheworzala@gmail.com>

Allow custom component translator implementation

(cherry picked from commit 31fd6317ad4f514cd2fad11221607d401fdbae0a)
(cherry picked from commit d40e85dedb)
2024-02-09 14:27:43 -05:00
mworzala
0ccb26c7be hollow-cube/entity-get-instance-unknown-nullability
Signed-off-by: mworzala <mattheworzala@gmail.com>

Entity#getInstance to @UnknownNullability

(cherry picked from commit 35fc7a1127b2189515991bfdf0f7fd0dc92af09e)
(cherry picked from commit bc73a6cbf8)
2024-02-09 14:27:43 -05:00
mworzala
e2fdce0880 hollow-cube/tick-thread-counter
Signed-off-by: mworzala <mattheworzala@gmail.com>

Add a tick counter in the current tick thread and a way to get the current tick thread.

(cherry picked from commit 65ff64658efef55ac04053dc653fff492cc38a55)
(cherry picked from commit 72a456eea8)
2024-02-09 14:27:43 -05:00
Spanner
2cdb3911b0
Prioritise errors by chain length, build subcommands first (fix #1934) (#1935)
* Fix empty command chain causing NullPointerException

* Add test for empty command input

* Add test for #1934; subcommand priority issue

* Fix ConversionNode; process subcommands first

* Fix command error priority, add test for literal suggestions

* Test for subcommand priority in graph tests
2023-09-07 08:58:34 -04:00
Spanner
3645d4311d
Fix empty command chain causing NullPointerException (#1931)
* Fix empty command chain causing NullPointerException

* Add test for empty command input
2023-09-01 17:14:18 -04:00
Spanner
2b8beadd3e
Rewrite CommandParserImpl recursively (fix #1327) (#1893)
* Rewrite CommandParserImpl recursively (fix #1327)

* Fix for tests: CommandManagerTest, CommandParseTest

* Make attributes final inside Chain

* fix #1295 with argument type priority

* Don't include command name in list of arguments

* Add test for #1327

* Add test for #1295

* Fix suggestions with bad syntax

* Fix #1916

* Add test for #1916

* Fix `GraphImpl` causing syntax order issues
2023-08-31 09:11:17 +10:00
KrystilizeNevaDies
9f09e26cd8 fix typo 2023-08-29 10:04:50 +10:00
KrystilizeNevaDies
56a6cfc2fb Allow serialisation of empty nbt components 2023-08-29 10:01:30 +10:00
rad
99941e511c
add javadocs for BlockHandler#getBlockEntityTags() (#1930)
* add javadocs for getBlockEntityTags()

* Update BlockHandler.java
2023-08-28 11:34:22 +10:00
GoldenStack
c5047b8037
Fix enchantment registry reading (#1902)
Signed-off-by: GoldenStack <goldenfire64yt@gmail.com>
2023-07-13 18:37:58 -04:00
Matt Worzala
824ae0a25b
Fix slow dimension changes (#1892)
* only send spawn point on dimension change
2023-07-04 18:02:13 -04:00
Hydrogen
954e8b3915
Add static to Query stop and isStarted methods (#1867) 2023-06-04 21:58:34 +10:00
TheMode
9b15acf4fa Inline array initialization
Signed-off-by: TheMode <themode@outlook.fr>
2023-05-27 15:36:06 +02:00
Tomáš Hůla
80f5db34a6
Fix boat steer NPE (#1854) 2023-05-21 14:10:12 -04:00
Codestech
cb3892255e
1.19.3 (#1851)
* hollow-cube/1.19.3

Signed-off-by: mworzala <mattheworzala@gmail.com>

fix sounds v2

(cherry picked from commit e6d4a2cc919d6ab5aa9402cc871a70535069d803)

fix command packet

(cherry picked from commit f3efd64f7bd1d0473e0899d202268f77bab35abf)

fix sound effect packets

(cherry picked from commit 8530b37b354129a2149aafe2820183b28766be00)

remove named sound effect & fix sound effect, entity sound effect packet is still wrong

(cherry picked from commit 612f6065a12c465c07816c8551b1c44f17c21159)

update NamedSoundEffectPacket to 1.19.3

(cherry picked from commit 8c78d9beac96f94770f6fd0e9216452c3421bcfd)

update datagen, add read method to player info update (though it seems kinda broken)

(cherry picked from commit 6464a72dabc5edaf9b09ef1b8100815965bbad74)

Add ChatSession

Signed-off-by: TheMode <themode@outlook.fr>
(cherry picked from commit 0488915fda)

Unnecessary line change

Signed-off-by: TheMode <themode@outlook.fr>
(cherry picked from commit 915836f490)

Make tests compile

Signed-off-by: TheMode <themode@outlook.fr>
(cherry picked from commit 220217fcc1)

Fix info update

Signed-off-by: TheMode <themode@outlook.fr>

(cherry picked from commit 1a606285c0)

Fix unsigned message

Signed-off-by: TheMode <themode@outlook.fr>
(cherry picked from commit 7ba55fdfef)

1.19.3 support

(cherry picked from commit f09fdd862b)

* Cleanup

* Fix tests

* Fix tests round 2

* Cleanup round 2

* remove logback

* remove chatbound

* don't use magic numbers

* Fix formatting

* Unused imports

* Fix and add update display name packet test back

* Cleanup tests

* Bump minestom data

* Add ArgumentResource and ArgumentResourceOrTag

* Fix spacing

---------

Co-authored-by: themode <themode@outlook.fr>
Co-authored-by: KrystilizeNevaDies <tyreece@rozycki.family>
Co-authored-by: iam <iam4722202468@users.noreply.github.com>
2023-05-21 17:51:13 +03:00
Zak Shearman
a0929db8b0
Copy javadocs for PlayerBlockIteractEvent#setBlockingItemUse (#1814) 2023-05-13 22:41:02 +10:00
Zak Shearman
e160cbdecd
Fixes cat color (variant) metadata, adds frog meta (#1833)
* Add frog & cat meta types

* Rename Color -> Variant in CatMeta, use DyeColor
2023-05-13 22:39:33 +10:00
Not Flamgop
01ffec6614
Add Cancel and Finish digging events (#1846)
* Add Cancel and Finish digging events

* Add a function for setting the block which was dug in PlayerFinishDiggingEvent.java
2023-05-12 19:15:49 +10:00
Hydrogen
2c3e38b178
Null verifier wildcard fix (#1849)
* fix hasPermission(String, PermissionVerifier) Behavior

* add test cases
2023-05-10 08:51:06 +10:00
Hydrogen
1d6ff874f8
Add permissions wildcard support to no-verifier hasPermission (#1319)
* Add permission wildcard support to no-verifier hasPermission

* add one more assertion

* check permissionLoop NOT permission

* Add all permissions wildcard test

* Add proper pattern matching with tests

* Sanitize regex

* Clean up code

* Add to other hasPermission method aswell
2023-05-09 22:43:44 +10:00
Zak Shearman
85febebd09
Fix nullability for Player shoulder entity data (#1834) 2023-05-01 16:06:48 +03:00
iam
79ce9570ea
Allow event node handle to be garbage collected (#1835) 2023-04-23 13:07:40 +02:00
iam
8ad2c7701f
Fix physics not checking nearest block (#1815) 2023-04-03 22:08:49 +02:00
EpicPlayerA10
4f3c35ee87
Instance register and unregister events (#608)
* Added InstanceRegisterEvent and InstanceUnregisterEvent

* Add unit test
2023-03-31 07:35:24 +10:00
GreatWyrm
0b77fb805b
Add Death Location variable to Player and update Death Location on death (#1807)
* Add Death location variable to Player and update on death

* Add death location test

* Fix test
2023-03-29 21:03:36 -04:00
TogAr2
9abb3079f6
Fix item attributes not being read correctly (#1806) 2023-03-29 15:09:24 +02:00
Tomáš Hůla
ec8034750a
Fix method javadoc (#1802)
* FIx Point#sameBlock(Point) javadoc

* Fix grammar of Point's methods javadocs
2023-03-25 19:35:33 -04:00
Alexander
c496ee3572
Update to JoinGamePacket and RespawnPacket (#1640)
* Add death location support to JoinGamePacket
2023-03-21 23:22:24 -04:00
FourteenBrush
784875943a
Fix client not finding recipe serializer for minecraft:stonecutter (#1794) 2023-03-20 15:19:24 -04:00
Zak Shearman
067227421f
Fix/mojang utils long name (#1792) 2023-03-18 01:02:18 +01:00
Obyvante
7b0b314707
Wrong generated window id for newly created inventories. (#1784)
* chore(Inventory): Fixed generated window id sometimes becomes 0 or -128(out of int) which causes empty inventories.

* chore(InventoryTest): Updated inventory window id creation test.

* chore(InventoryTest): Updated inventory window id creation test. (iam's suggestion.)

* chore(Inventory): Updated inventory window id generation that is more thread safe compare to the old one. (iam's suggestion)

* chore(InventoryTest): int window id to byte.
2023-03-15 13:44:41 -04:00
Zak Shearman
a9e319f961
Add javadocs for Potion (#1763) 2023-02-26 10:55:34 -07:00
Tyreece Rozycki
aebf72de90
Correctly send the player's main hand setting. (#1724)
* Update Player.java

* Use setNotifyAboutChanges and add integration test
2023-01-29 07:05:28 -05:00
Steank
51ef4779c9
Fix for #1712 (#1713) 2023-01-25 15:13:15 +01:00
emortaldev
c995f9c3a9
Block event changes (#1675)
* Add cursor position to interact events

* Add block face to digging events

* Expose interact position in interact event
2023-01-16 18:57:18 -05:00
emortaldev
8eb089bf3e
Add playSound with position to Player (#1676) 2023-01-08 19:38:30 -05:00
emortaldev
84846f663b
Add nullability for LivingEntity methods (#1668) 2023-01-07 22:10:53 -05:00
NitrinCloud
aa621021e2
Support dynamic selection of a port using '0' (#1661) 2023-01-07 08:39:32 +01:00
HEROOSTECH
f291437ada
Hand in PlayerItemAnimationEvent (#1650)
* Hand in PlayerItemAnimationEvent

* Hand in PlayerItemAnimationEvent
2023-01-03 19:11:17 -05:00
Kezz
24cc458659
Implement some Adventure methods into ConsoleSender (#336)
* Implement some Adventure methods into ConsoleSender

* Remove getUuid from CommandSender/ConsoleSender

* rebase and review fixes

Co-authored-by: mworzala <mattheworzala@gmail.com>
2022-12-30 22:24:01 -05:00
off-by-0point5
6870c37b94
Add commit info from JitPack into Minestom's jar (#1272)
* Compile git info into Git.java

* Move blossom task into tasks block

* Fix javadoc task

* Improve readability

* Remove version field

* Hopefully preventing inline by javac

* Make Git class final

* Remove prefixes for getters

* Make getters static
2022-12-30 22:09:07 -05:00
GreatWyrm
9890d71347
Minor Property Tweaks (#1591)
* Add System Property for changing Portal Teleport boundry, remove unnecessary PropertyUtils method

* Remove unneeded imports on changed files

* Restore getString in PropertyUtils, change to use JDK method
2022-12-30 21:52:16 -05:00
TheMode
c04028336d
Entity viewable tracking (#1494) 2022-12-31 02:47:18 +01:00
George Linkovsky
91a344aa92
Fix player dimension packages (#1630) 2022-12-28 15:29:02 +01:00
Freddi
eb06ba8664
Update FakePlayer.java (#1603) 2022-12-21 07:12:31 +01:00
Jesse
809d9516b2
Fix incorrect arrow no clip mask bit (#1574) 2022-12-14 10:51:51 +01:00
GoldenStack
8585e0ceb0
Fix incorrect lectern inventory size (#1566) 2022-12-12 19:09:27 +01:00
iam
7361bf0825
Improve consistency of team packets (#1556) 2022-12-07 11:13:12 +01:00
Obyvante
ee7ac62b75
Prevent unsafe velocity packet (#1550) 2022-12-05 13:06:18 +01:00
tahmid-23
e5d0a43ba4
add BungeeGuard authentication (#1502) 2022-11-28 06:13:09 +01:00
Zak Shearman
84f4ae040e
Re-word docs for Entity#lookAt(Entity) (#1543) 2022-11-27 23:01:50 +01:00
Zak Shearman
a81fca948e
Fix coordinate_scale type (int -> double) (#1542) 2022-11-27 20:20:36 +01:00
Noel Németh
d37f40a1bb Fix missing chunk history update 2022-11-26 22:08:08 +01:00
GreatWyrm
27f3b5d4ee
Fix entities vanishing upon respawn (#1497) 2022-11-26 21:23:39 +01:00
Noel Németh
77be05085d Clear chunk history on teleport and instance change, initialize history with less common chunk coordinate; fixes #1536 2022-11-26 11:10:44 +01:00
iam
1a013728fd
Blockiterator fix 4 (#1513) 2022-11-10 06:31:04 +01:00
iam
d496fcfe4a
Misc fix + more tests (#1511) 2022-11-09 23:46:53 +01:00
iam
88dd901438
Rewrite BlockIterator (#1509) 2022-11-09 23:07:31 +01:00
iam
361849c155
Blockiterator fix (#1508) 2022-11-07 23:35:32 +01:00
TheMode
42195c536b Fix broken buffer resize
Signed-off-by: TheMode <themode@outlook.fr>
2022-10-31 10:06:05 +01:00
Huynh Tien
93718276c5
Strong Ref for child EventNode (#1491) 2022-10-29 12:33:24 +02:00
Huynh Tien
01e2c43b5d
try fixing EOF on ClientClick (#1490) 2022-10-29 12:06:18 +02:00
TheMode
993af51556
Use NetworkBuffer in packets (#1487) 2022-10-29 11:02:22 +02:00
TheMode
ba2816fc74
Buffer API rework (#1485) 2022-10-28 19:27:48 +02:00
TheMode
c3df2af306 Unused EventCallback
Signed-off-by: TheMode <themode@outlook.fr>
2022-10-28 11:03:24 +02:00
TheMode
e11d15af0d Fix event node child/map leak
Signed-off-by: TheMode <themode@outlook.fr>
2022-10-27 22:32:22 +02:00
TheMode
b4af87b8a4 Fix event node leak
Signed-off-by: TheMode <themode@outlook.fr>
2022-10-27 21:02:27 +02:00
TheMode
caa150d923 Use constant default anvil loader
Signed-off-by: TheMode <themode@outlook.fr>
2022-10-27 15:52:59 +02:00
TheMode
c95ced9493 Misc intellij suggestions
Signed-off-by: TheMode <themode@outlook.fr>
2022-10-27 15:25:51 +02:00
TheMode
3e2ac14048
Dedicated GameProfile record (#1482) 2022-10-27 14:33:48 +02:00
Huynh Tien
d7e958fa07
ComponentLogger & Colored Terminal (#1460) 2022-10-26 19:52:01 +02:00
Huynh Tien
632922bce5
move reflect fields in Extension to ExtensionClassLoader (#1478) 2022-10-25 17:11:59 +02:00
GreatWyrm
6316eeb90e
Fix respawning players falling into the void (#1454) 2022-10-25 03:04:41 +02:00
GreatWyrm
60751d546e
Update the list of entity poses to 1.19 (#1439) 2022-10-10 23:40:10 +02:00
Omny
5537faabac
add new 1.19.2 effects (#1437) 2022-10-10 20:41:43 +02:00
Zak Shearman
7eb9d3fdd7
Fix yaw/pitch order in SpawnEntityPacket (#1436) 2022-10-09 22:50:18 +02:00
Arektor
17ef1c2f57
Reduce velocity update rate (#1426) 2022-10-07 17:19:29 +02:00
GreatWyrm
87c3dc3f76
Replace char literal with unicode literal (#1430) 2022-10-07 12:40:58 +02:00
Arektor
95fa6607ed
Small improvements to entity movement (#1421) 2022-10-02 04:12:54 +02:00
Vendo
caaad1693e
Skip loading empty sections (#1409) 2022-09-30 11:28:47 +02:00
Koding
18c46481f4
Fix incorrect functionality of ClientSpectatePacket (#1402) 2022-09-14 13:44:43 +02:00
TheMode
fc90fe8852 Remove some Collections usage
Signed-off-by: TheMode <themode@outlook.fr>
2022-09-06 15:08:36 +02:00
Koding
4a5736cc7c
Fix unnecessary allocations with block properties function (#1387) 2022-09-06 14:55:21 +02:00
TheMode
1dd2cc72ee
1.19.2 (#774) 2022-09-05 13:54:58 +02:00
Marfien
eef95ae5d1
Add ComponentHolderServerPacket to some packets (#1275) 2022-09-02 22:23:42 +02:00
TomJuri
c270712798
Make the start log use BrandName instead of hardcoded "Minestom" (#1380) 2022-09-02 22:21:47 +02:00
Obyvante
c694c4074e
Fixed metadata issue. (#1378) 2022-08-30 21:37:25 +02:00
Ilya @ Gloryx
978a398f64
Fix a harmful javadoc typo (#1372)
Original: kill if health is **> (more)** or equal to 0 and is not yet dead
2022-08-29 12:43:36 +02:00
KrystilizeNevaDies
83011eb903
fix written book meta to allow modern components (#1359) 2022-08-23 09:35:37 +10:00
iam
f5f323fef9
Physics improvement (#1320) 2022-08-10 01:49:42 +02:00