Jake Potrebic
981cf9de7a
Add BlockLockCheckEvent
2022-05-21 20:59:45 -07:00
Spottedleaf
adf175d7ca
Improve inlining for some hot BlockBehavior and FluidState methods
2020-07-06 20:46:50 -07:00
Noah van der Aa
21770104ec
Limit pet look distance
2022-12-06 18:45:54 +01:00
Yannick Lamprecht
df65fbea3e
Player Entity Tracking Events
2022-03-30 18:16:52 +02:00
Jake Potrebic
4d008bb329
Sync offhand slot in menus
...
Menus don't add slots for the offhand, so on sendAllDataToRemote calls the
offhand slot isn't sent. This is not correct because you *can* put stuff into the offhand
by pressing the offhand swap item
2022-01-14 10:20:40 -08:00
Jan Villim
bc5dd992ab
Ability to control player's insomnia and phantoms
2022-01-22 17:56:19 +01:00
Noah van der Aa
e151b6fc3f
Friction API
2021-09-15 20:44:22 +02:00
Jake Potrebic
4a416ca85a
ItemStack damage API
...
Adds methods notify clients about item breaks and
to simulate damage done to an itemstack and all
the logic associated with damaging them
== AT ==
public net.minecraft.world.entity.LivingEntity entityEventForEquipmentBreak(Lnet/minecraft/world/entity/EquipmentSlot;)B
2022-05-08 13:35:45 -07:00
Jake Potrebic
012c32fac7
check global player list where appropriate
...
Makes certain entities check all players when searching for a player
instead of just checking players in their world.
2022-11-22 13:16:01 -08:00
Lulu13022002
533bc0c468
More vanilla friendly methods to update trades
2022-10-16 16:12:49 +02:00
Jake Potrebic
e70d21dbfe
ensure reset EnderDragon boss event name
...
Fix MC-257487
2022-11-12 10:08:58 -08:00
Owen1212055
37f3f89384
Add PrePlayerAttackEntityEvent
2022-09-18 13:10:18 -04:00
Denery
5ca5bc3d6c
Fix EntityCombustEvent cancellation cant fully prevent entities from being set on fire
2022-10-31 14:20:52 +03:00
dannyball710
f161307a0f
Ignore impossible spawn tick
2022-02-12 23:42:48 +08:00
VytskaLT
8c11cd85e3
Add fire-tick-delay option
2022-06-22 14:34:28 +03:00
KyGuy2002
d9db4d694b
Add EntityToggleSitEvent
2022-03-11 15:33:10 +00:00
lukas81298
b9139ad4aa
fix entity vehicle collision event not called
2021-01-12 14:41:38 +01:00
Jakub Zacek
4f1619700a
Add PlayerInventorySlotChangeEvent
2022-04-24 22:56:59 +02:00
Jake Potrebic
945f6ef6e6
EntityPickupItemEvent fixes
...
Fixes double firing of the event in PiglinAi
Fixes cancelling the event for piglins still triggering the
advancement trigger
Fires the event when a Raider tries to pick up a raid banner
to become raid leader.
2022-07-04 21:45:36 -07:00
Jake Potrebic
3f8bb2073a
Fix custom piglin loved items
...
Upstream didn't modify the isLovedItem check in wantsToPickup
so piglins never actually tried to pickup interestItems
2022-07-04 21:50:44 -07:00
Jake Potrebic
0b9ef3701e
Fix a bunch of vanilla bugs
...
https://bugs.mojang.com/browse/MC-253721
wrong msg for opping multiple players
https://bugs.mojang.com/browse/MC-248588
respect mob griefing gamerule for draining water cauldrons
https://bugs.mojang.com/browse/MC-244739
play goat eating sound for last item in stack
https://bugs.mojang.com/browse/MC-243057
ignore furnace fuel slot in recipe book click
https://bugs.mojang.com/browse/MC-147659
Some witch huts spawn the incorrect cat
Note: Marked as Won't Fix, makes 0 sense
https://bugs.mojang.com/browse/MC-179072
Creepers do not defuse when switching from Survival to Creative/Spectator
https://bugs.mojang.com/browse/MC-259571
Fix changeGameModeForPlayer to use gameModeForPlayer
https://bugs.mojang.com/browse/MC-262422
Fix lightning being able to hit spectators
https://bugs.mojang.com/browse/MC-263999
Fix mobs breaking doors not spawning block break particles
https://bugs.mojang.com/browse/MC-210802
Fixes sheep eating blocks outside of ticking range
https://bugs.mojang.com/browse/MC-123848
Fixes item frames dropping items above when pointing down
https://bugs.mojang.com/browse/MC-174630
Fix secondary beacon effect remaining after switching effect
https://bugs.mojang.com/browse/MC-153086
Fix the beacon deactivation sound always playing when broken
https://bugs.mojang.com/browse/MC-200092
Fix yaw being ignored for a player's first spawn pos
https://bugs.mojang.com/browse/MC-158900
Fix error when joining after tempban expired
https://bugs.mojang.com/browse/MC-99075
Fix inventory desync within spawn protected area
https://bugs.mojang.com/browse/MC-273635
Fix TrialSpawner forgets assigned mob when placed by player
== AT ==
public net/minecraft/world/entity/Mob leashInfoTag
public net/minecraft/server/level/ChunkMap anyPlayerCloseEnoughForSpawning(Lnet/minecraft/world/level/ChunkPos;)Z
Co-authored-by: William Blake Galbreath <blake.galbreath@gmail.com>
Co-authored-by: Spottedleaf <Spottedleaf@users.noreply.github.com>
2022-07-11 11:56:41 -07:00
Legitimoose
074f19e7fb
use BlockFormEvent for mud converting into clay
2022-09-29 16:25:50 -07:00
Legitimoose
1695d7c138
fix Jigsaw block kicking user
2022-09-28 22:45:49 -07:00
Lulu13022002
a45d2c6068
Add source block to BlockPhysicsEvent
2022-08-07 22:16:36 +02:00
Lulu13022002
b24b187864
Missing effect cause
2022-08-16 19:44:55 +02:00
Lulu13022002
bde548833e
Missing eating regain reason
2022-08-05 12:16:51 +02:00
Jake Potrebic
75c623590f
Fire EntityChangeBlockEvent in more places
...
Co-authored-by: ChristopheG <61288881+chrisgdt@users.noreply.github.com>
Co-authored-by: maxcom1 <46265094+maxcom1@users.noreply.github.com>
2021-08-09 20:45:46 -07:00
MWHunter
2aae5e2218
Stop large look changes from crashing the server
...
Co-authored-by: Jaren Knodel <Jaren@Knodel.com>
2022-08-24 09:54:11 -04:00
Owen1212055
dede55eaad
Add and fix missing BlockFadeEvents
...
Beyond calling the BlockFadeEvent in more places, this patch also aims
to pass the proper replacement state to the event, specifically for
potentially waterlogged block states fading.
Co-authored-by: Lulu13022002 <41980282+Lulu13022002@users.noreply.github.com>
2022-07-21 12:07:54 -04:00
Owen1212055
ce7cf07354
Warn on plugins accessing faraway chunks
2022-07-29 12:35:19 -04:00
Jake Potrebic
103a5ea12b
Don't use level random in entity constructors
...
Paper makes the entity random thread-safe
and constructing an entity off the main thread
should be supported. Some entities (for whatever
reason) use the level's random in some places.
2022-07-10 14:13:22 -07:00
Jake Potrebic
e7c3763785
Add EntityPortalReadyEvent
2021-05-12 04:30:42 -07:00
Jake Potrebic
4be7165c83
Fix Bee flower NPE
2022-07-06 14:59:38 -07:00
Jake Potrebic
ce5660a8e9
Add various missing EntityDropItemEvent calls
2021-07-20 21:35:47 -07:00
Spottedleaf
39156be36a
Do not sync load chunk for dynamic game event listener registration
...
These can be called while an entity is being added to the world,
and if the entity is being added from a chunk load context the
sync load will block indefinitely (because the chunk load context
is for completing the chunk to FULL).
This does raise questions about the current system for these
dynamic registrations, as it looks like there is _zero_ logic
to account for the case where the chunk is _not_ currently loaded
and then later loaded.
2022-07-03 22:31:37 -07:00
Jake Potrebic
5cf40e45af
Don't broadcast messages to command blocks
...
Previously the broadcast method would update the last output
in command blocks, and if called asynchronously, would throw
an error
2022-06-16 14:22:56 -07:00
Owen1212055
1f68916ac9
Nameable Banner API
2022-04-07 17:49:25 -04:00
nopjar
97cab1d4a4
Add WardenAngerChangeEvent
2022-06-12 02:26:04 +02:00
Owen1212055
4c16855bdd
Prevent entity loading causing async lookups
2022-03-06 11:09:09 -05:00
Nassim Jahnke
1be6fca1f1
Disable component selector resolving in books by default
2022-06-02 20:35:58 +02:00
Owen1212055
37bf078394
Sanitize sent BlockEntity NBT
2021-12-03 16:55:50 -05:00
Owen1212055
dedddea65d
Expand FallingBlock API
...
- add auto expire setting
- add setter for block data
- add accessors for block state
== AT ==
public net.minecraft.world.entity.item.FallingBlockEntity blockState
Co-authored-by: Lukas Planz <lukas.planz@web.de>
2021-12-05 14:58:17 -05:00
u9g
2082797618
Add PlayerStopUsingItemEvent
2022-05-03 20:41:37 -04:00
Jake Potrebic
954f57e596
fix powder snow cauldrons not turning to water
...
Powder snow cauldrons should turn to water when
extinguishing an entity
2021-12-30 14:02:13 -08:00
Jake Potrebic
f40a8e5f0c
Fire CauldronLevelChange on initial fill
...
Also don't fire level events or game events if stalactite
drip is cancelled
2022-03-29 13:46:23 -07:00
Jake Potrebic
2e86b22228
Add EntityDyeEvent and CollarColorable interface
2022-03-18 21:15:55 -07:00
Jake Potrebic
fc19bf4dc5
Trigger bee_nest_destroyed trigger in the correct place
2022-02-02 13:50:06 -08:00
HexedHero
bc02501cc2
Expand PlayerItemDamageEvent
2022-04-10 06:26:32 +01:00
etil2jz
f97f51d382
Fix NBT pieces overriding a block entity during worldgen deadlock
...
By checking if the world passed into StructureTemplate's placeInWorld
is not a WorldGenRegion, we can bypass the deadlock entirely.
See https://bugs.mojang.com/browse/MC-246262
2022-04-02 23:29:24 +02:00
Doc
3dc8a5ce57
Allow changing the EnderDragon podium
2022-04-03 11:31:42 -04:00