Commit Graph
20 Commits
Author SHA1 Message Date
Bjarne Koll d0743357eb Missing FQN in CraftPotionBrewer getter 2024-04-25 19:45:17 +02:00
Bjarne Koll d6adc0b264 Some more compilation fixes 2024-04-25 19:42:24 +02:00
Bjarne Koll b7e5de9401 Update Enchantment damage increase API
The Enchantment damage increase API added previously used the
EntityCategory enum as a parameter. These values are now however
determined by tags instead of the categories themselves.

Deprecated the outdated api method, create a new overload that takes
EntityType instead and implement deprecated method by guessing an entity
type from the builtin registry based on the category passed.
This method allows
a) the tags to still be modified and the legacy
   method still respecting such.
b) potential cursed implementations of enchantments of plugins to not
   break that override the getDamageBonus method on Enchantment.
2024-04-25 18:42:50 +02:00
Bjarne Koll d7874011e2 Make things explodes via patches 2023-12-06 18:33:52 +01:00
Bjarne Koll c730cdcecf Fix custom potion mixes patch 2023-12-06 17:39:37 +01:00
Bjarne Koll 414d8a9efe More work work work work work work work work work 2023-09-22 16:42:56 +02:00
Bjarne Koll d2b6bfa507 Work here, work there, work for everyone 2023-09-22 16:35:40 +02:00
Bjarne Koll dff4f6bdd5 Working hard on messing with leafs patches 2023-09-22 16:20:09 +02:00
Bjarne Koll 7f8ad55e87 More work 2023-09-22 15:47:26 +02:00
Bjarne Koll 0c48ad35ee More work work work 2023-09-22 15:32:32 +02:00
Bjarne Koll c3c850f4fc Fix PaperAdvancementDisplay 2023-09-22 15:19:33 +02:00
Bjarne Koll f865f927a0 More more more (more ??) more work 2023-09-22 15:15:57 +02:00
Bjarne Koll 42b9f5a66d Port sidebar slots patch 2023-09-22 14:33:54 +02:00
Bjarne Koll b5c4a402ee More work work work 2023-09-22 14:22:24 +02:00
Bjarne Koll 2578e385d9 Missing paper comment 2023-09-22 13:42:04 +02:00
Bjarne Koll 1d8c69ef63 Fix leave message in common packet listener 2023-09-22 13:39:00 +02:00
Bjarne Koll 37b58b3df7 Drop manual isEditable copy in CraftSign
Signs no longer have a specific isEdiable state, the entire API in this
regard needs updating/deprecation. The boolean field is completely gone,
replaced by a uuid (which will need a new setEditingPlayer(UUID) method
on the Sign interface), and the current upstream implementation of
setEdiable simply flips the is_waxed state.

This patch is hence not needed as it neither allows editing (which will
be redone in a later patch) nor is required to copy the is_waxed boolean
flag as it lives in the signs compound tag and is covered by applyTo.
2023-06-08 11:35:39 +02:00
Bjarne Koll ff68512997 Update fluid chunk loading patch 2023-06-08 11:18:51 +02:00
Bjarne Koll 53f112de49 Minimize strict-advancement-dimension-checks.patch 2023-06-08 10:53:00 +02:00
Bjarne Koll 64e1a54657 Remove streams from SensorNearest
The behavioural nearby sensors are validated every tick on the entities
that registered the respective sensors and are therefore a good subject
to performance improvements.

More specifically this commit replaces the Stream#filter usage with
ArrayList#removeIf as the removeIf method on an array list is heavily
optimized towards a single internal array re-allocation without any
further overhead on the removeIf call.

The only negative of this change is the rather agressive diff these
patches introduce as the methods are basically being reimplemented
compared to the previous stream-based implementation.

See: https://nipafx.dev/java-stream-performance/
Note: Updated LICENCE.md to release this commit under MIT
2021-03-03 03:52:43 +01:00