Commit Graph

5489 Commits

Author SHA1 Message Date
Zax71
40ebd2b67f
Add getUUID() and getUsername() to MojangUtils (#2024)
* Add MojangUtils#getUUID() and MojangUtils#getUsername()

* Remove invalid UUID test as Java's UUID will not allow an invalid UUID

* Add `@Blocking` and some JavaDoc comments

* Override `MojangUtils#fromUuid(String)` with `MojangUtils#fromUuid(UUID)` and add a test

* Switch to IOException over custom ones
2024-03-18 03:25:35 +00:00
themode
ed257aea18 Proper gradle update 2024-03-18 00:11:12 +01:00
themode
6758737b80 Little nitpicks 2024-03-18 00:02:54 +01:00
themode
007be52c93 Gradle 8.6 2024-03-18 00:02:03 +01:00
mworzala
4b31570c9d
feat: redstone conductor & signal source 2024-03-14 22:04:12 -04:00
GreatWyrm
7e59603d5f
Add entity type to Material registry (for spawn eggs) (#2020)
* Add entity type to Material registry (for spawn eggs)

* Rename to spawn entity type and add javadoc
2024-03-14 00:50:54 -04:00
mworzala
dcbdad9a1b
fix: painting variant read entry, forgot to follow my own comment 2024-03-12 20:05:41 -04:00
mworzala
58fd95879a
fix: correct painting metadata 2024-03-12 15:22:15 -04:00
iam4722202468
7aaa85cd47 change maxspeed to float 2024-03-09 23:44:51 -05:00
Steank
2ff143a61d
Fix potential threading bug in Acquirable (#2013)
* Fix potential lock acquisition in Acquirable API

 * Calls to Acquirable#sync(Consumer) will now always unlock, even if the consumer throws an unchecked exception

* fix: formatting

---------

Co-authored-by: Matt Worzala <35708499+mworzala@users.noreply.github.com>
2024-03-05 19:27:56 +00:00
iam4722202468
a47dcb09ff Add intersect entity to shape 2024-03-02 16:09:42 -05:00
mworzala
60fc9ebd28
chore: add workflow to close prs from org accounts (and same branch prs) 2024-02-29 10:06:01 -05:00
Matt Worzala
845113b6a9
Recipe manager cleanup (#2010)
* Improved code readability.
This code improves code flow, simplicity and reduces complexity

* chore: interface to final class, rename conversion functions to their recipe type for clarity, use cached packet

---------

Co-authored-by: Phillipp Glanz <6745190+TheMeinerLP@users.noreply.github.com>
2024-02-29 14:58:12 +00:00
iam
d595ce3468
ParticlePacket constructor should use floats (#2009) 2024-02-29 07:18:42 +00:00
iam
5162a00b1e
Add particle data types (#2004)
* Add particle data types

* misc

* misc

* remove spaces

* defaults, tests, change what mattw said to

* RGBLike

* RGBLike

* RGBLike

* add back changes

* tests

* refactor

* annotations

* more fixes

* another test

* more tests + fix

* logging + checks consistency

* review changes

* review changes
2024-02-28 21:54:24 +00:00
tahmid-23
aad7bdab0f
refresh pose on gamemode change (#1888) 2024-02-28 17:54:12 +00:00
Matt Worzala
2947279898
Remove FakePlayer (#2006)
* feat: remove FakePlayer

* fix: oops, demo server exists
2024-02-27 13:37:42 +00:00
GoldenStack
009ba773ed
Fix incorrect slot updating (#2007)
* Fix slot sending

* Test fixed slot sending

* Also send offhand slots
2024-02-27 08:35:30 -05:00
mworzala
a5e0641444
fix: use formatter args in Check calls 2024-02-24 19:43:30 -05:00
mworzala
fb7e4b10e0
fix: require size when reading collection to prevent oom. Do not allow string longer than remaining bytes 2024-02-24 17:46:56 -05:00
cosrnic
d86b890cc6 Change comments for expand, contract and withOffset 2024-02-24 12:10:49 -05:00
cosrnic
0555405064 Fix spelling mistake 2024-02-24 12:10:49 -05:00
cosrnic
0b66dd61db Change offset to withOffset 2024-02-24 12:10:49 -05:00
cosrnic
49a4226ebb Allow offsetting the BoundingBox 2024-02-24 12:10:49 -05:00
mworzala
b58db7d5b0
fix: drain worker queue during worker shutdown 2024-02-21 13:39:25 -05:00
mworzala
b0f811d5ba
chore: alternative solution for prior commit because the simple one didn't work. 2024-02-20 21:32:11 -05:00
mworzala
c5a145cf8b
chore: be more specific in pr publish repo condition 2024-02-20 21:20:36 -05:00
mworzala
c9a4b4b9c1
fix: do not check instance if player was kicked during config state 2024-02-17 22:01:56 -05:00
Phillipp Glanz
7ec3e3021e
Improved socket handling for the server (#1998)
* Improves socket handling from the server.
A logging is added which catches errors as soon as the server socket connection cannot be closed. In addition, the program terminates itself immediately to avoid further errors.

* Worker stop has been transferred.
The worker stop was implemented in a close method in the worker class and is now called from the server. The access modifier was adapted for this

* Adding a wakup call before the server closes its socket
2024-02-17 19:43:05 -05:00
Phillipp Glanz
ffb33e608d
Fixes minor bug in the biome implementation. (#1999)
The registry method was never implemented correctly and always returns a null reference. This commit solves the problem and will return an object in some cases in the future.
2024-02-17 09:24:08 -05:00
Spanner
fe46ed4ac2
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

(cherry picked from commit 2cdb3911b0)
2024-02-12 18:28:15 -05:00
iam
7320437640
Optionally load vanilla biomes (#1988)
* Add biomes from vanilla

* cleanup

* rework biomes

* nullability

* getByName string

* expose vanilla biomes

* not null

* before rename

* rename

* nbt cache

* fix

* fix

* fix

* final on vanilla biome
2024-02-12 15:25:46 -05:00
Andus
1b9e186c3a
Fix Maven Central Link (#1994) 2024-02-11 15:17:30 -05:00
iam4722202468
6d175c4ff9 expose internal and external lighting 2024-02-10 18:06:31 -05:00
iam4722202468
c8f96cbb16 fix relight command 2024-02-10 18:06:31 -05:00
iam4722202468
4fea03fe32 Never relight non-lighting chunk 2024-02-10 18:06:31 -05:00
iam4722202468
4b9e260f23 Don't relight dynamic chunk 2024-02-10 18:06:31 -05:00
iam4722202468
3ea09e243f Add another test 2024-02-10 18:06:31 -05:00
iam4722202468
aca67fc5d8 Don't relight entire chunk 2024-02-10 18:06:31 -05:00
iam4722202468
225a834ef8 Add api to get lighting of instance 2024-02-10 18:06:31 -05:00
mworzala
77df1bdfd2
fix: correctly refresh client state on death 2024-02-10 17:42:02 -05:00
iam4722202468
9ed8605edc Documentation 2024-02-10 14:23:49 -05:00
Steank
d03466e5a3
Fix for #1883 (#1884)
* fix NPE when stopping server after MinecraftServer#init() but before starting

* add unit test

* fix for #1712

* fix hashCode contract violation between NamespaceID and KeyImpl objects
2024-02-09 15:53:52 -05:00
Sparky
05b3ed9e7f
Add automatic module name (#1967) 2024-02-09 15:06:27 -05:00
NxDs
82725b5e32
Add BlockFace#fromDirection
(cherry picked from commit cc39a90857)
2024-02-09 15:04:36 -05:00
Spongecade
e9e58e4fce
Update Minecraft Wiki links to new domain
(cherry picked from commit 478eba12fb)
2024-02-09 15:03:05 -05:00
mworzala
36ac2b5eb4
fix: maven coordinates 2024-02-09 14:55:19 -05:00
mworzala
27e774dd1b
fix: javadoc tag issue in ServerFlag :| 2024-02-09 14:35:09 -05:00
mworzala
04ae4117be fix: oops, forgot to remove some stuff 2024-02-09 14:27:43 -05:00
mworzala
e1140b5856 chore: remove extensions 2024-02-09 14:27:43 -05:00