Commit Graph

5417 Commits

Author SHA1 Message Date
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
mworzala
3ca74e00fa
use local gradle for javadoc action 2023-03-12 09:15:47 -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
TheMode
d7feed23c8 Update dependencies
Signed-off-by: TheMode <themode@outlook.fr>
2022-12-08 20:52:52 +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