Dylan K. Taylor
4d79aced07
Merge branch 'next-minor' into next-major
2022-12-15 19:50:27 +00:00
Dylan K. Taylor
95d0a3bf41
Merge branch 'stable' into next-minor
2022-12-15 19:38:22 +00:00
Dylan K. Taylor
cf707e15c2
fix
2022-12-15 19:36:16 +00:00
! Bryan
1308cda5c2
Implemented hook method Item::onInteractEntity() ( #5432 )
...
this is called when the player right-clicks on an entity to do some action, such as shearing, naming etc.
2022-12-15 19:30:52 +00:00
Dylan K. Taylor
99996b62d6
Align PhpDoc @param tags according to PHP-CS-Fixer
2022-12-06 13:21:20 +00:00
Dylan K. Taylor
8e600b4a78
ItemBlock: fixed unnecessary double singleton usage
2022-12-06 12:48:28 +00:00
Dylan K. Taylor
142ccc7e87
Merge branch 'next-minor' into next-major
2022-12-05 14:14:39 +00:00
Javier León
3984d220bb
Implemented the swift sneak enchantment ( #5404 )
...
Co-authored-by: Dylan T <dktapps@pmmp.io>
closes #5301
2022-12-01 20:38:41 +00:00
Dylan K. Taylor
28d8526d8d
Merge branch 'next-minor' into next-major
2022-11-30 20:05:30 +00:00
SlimyBoy2
95263795a8
Durable: fix misbehaviour of isBroken() since fe982c697bec3265c4222b73fe5ed17c9ef3b1ce ( #5436 )
...
this broke tool and armour break sounds.
2022-11-27 00:13:41 +00:00
Dylan K. Taylor
b0c6e8d8e0
StringToItemParser: added lookupAliases() and lookupBlockAliases()
...
this permits reverse-lookuping all registered aliases that map to the given item (including properties).
this may be useful for plugins to use for generating configs, instead of using IDs or some godawful hack using getName().
2022-11-26 19:32:39 +00:00
ipad54
858d3dce8e
Implement Weeping & Twisting vines ( #5396 )
2022-11-15 15:29:42 +00:00
Dylan K. Taylor
d9638cef96
Merge branch 'next-minor' into next-major
2022-11-02 16:04:16 +00:00
Dylan K. Taylor
1671405cd0
Merge branch 'stable' into next-minor
2022-11-02 16:03:30 +00:00
Dylan K. Taylor
fe982c697b
Durable: reset durability when overstacked items are broken
...
this is not really defined behaviour, but it makes more sense than the current behaviour, which makes the tool unbreakable unintentionally.
fixes #5378
2022-11-02 15:42:44 +00:00
Dylan K. Taylor
7bcc663b60
Migrate core code to using symfony/filesystem
...
webmozart/path-util is retained for plugin compatibility, but is dropped in 5.0
2022-10-14 21:51:29 +01:00
Dylan K. Taylor
f88ae93897
BC break: Replaced webmozart/path-util with symfony/filesystem, closes #5332
2022-10-13 16:43:36 +01:00
Dylan K. Taylor
0c7f8470b9
Avoid repeated strtolower usages in a couple of places
2022-09-28 21:30:06 +01:00
IvanCraft623
1366a43c22
Implement Turtle Shell ( #5235 )
2022-09-28 18:19:15 +01:00
Dylan K. Taylor
f80ffd8de0
Merge branch 'next-minor' into next-major
2022-09-15 13:59:21 +01:00
Dylan K. Taylor
441b06f6c7
Merge branch 'stable' into next-minor
2022-09-15 12:44:53 +01:00
Dylan K. Taylor
88eafdd614
Improve type info for RegistryTrait::getAll() and its users
2022-09-02 19:57:22 +01:00
Dylan K. Taylor
d5762d3f44
Item: allow describing type data to a reader as well as a writer
...
we don't currently need this, but it's better to have it in case we need it after PM5 release.
This is also now consistent with blocks.
2022-08-27 19:18:30 +01:00
Dylan K. Taylor
5c5d96d00b
ItemBlock: remember fuel time, fireproof and max stack size
...
this avoids repeatedly creating blocks for no reason when calling these methods.
This does assume that these methods always return the same result for a given block type, but I think that's a fair enough assumption.
2022-08-27 18:04:11 +01:00
Dylan K. Taylor
6799dcff51
StringToItemParser: improve some readability slightly
2022-08-26 15:54:21 +01:00
Dylan K. Taylor
1ecb10acba
Merge branch 'next-minor' into next-major
2022-08-21 19:19:07 +01:00
Dylan K. Taylor
ad2d59923c
Merge branch 'stable' into next-minor
2022-08-18 17:06:15 +01:00
IvanCraft623
b65e0f64f6
Implement Suspicious Stew ( #5224 )
2022-08-16 17:26:32 +01:00
Dylan K. Taylor
dce8bd6d21
CS: Standardize new with braces
2022-08-15 17:16:23 +01:00
IvanCraft623
223de3ad23
Implement Fire Charge ( #5225 )
2022-08-15 17:00:58 +01:00
Dylan K. Taylor
43a3151de3
Merge branch 'next-minor' into next-major
2022-08-14 18:49:19 +01:00
Dylan K. Taylor
f7ab0a3b92
Merge branch 'stable' into next-minor
2022-08-14 18:37:56 +01:00
Dylan K. Taylor
2fc84f6c67
ItemFactory: treat durables with negative meta as unknown items
...
fixes #5117
2022-08-12 17:24:43 +01:00
Dylan K. Taylor
44e4dabf6e
Fixed Turtle Master potions giving no effects
2022-08-12 17:05:08 +01:00
Dylan K. Taylor
79125b8426
Added APIs to get a new unique block/item type ID
...
this centralization is needed to avoid conflicts between different plugins fighting over the same hardcoded IDs.
2022-07-24 22:02:47 +01:00
Dylan K. Taylor
102406ee79
Added froglights
2022-07-23 17:40:38 +01:00
Dylan K. Taylor
38e495babf
Added mangrove roots and muddy mangrove roots
2022-07-23 17:20:23 +01:00
Dylan K. Taylor
b13f333b2e
Added mud and packed mud
2022-07-23 16:40:46 +01:00
Dylan K. Taylor
a7313ed9d9
Added rooted dirt
2022-07-23 16:12:17 +01:00
Dylan K. Taylor
47adcf763d
LegacyStringToItemParser: special-case air, which the item deserializer doesn't recognize
2022-07-20 20:20:14 +01:00
Dylan K. Taylor
67682cbf27
Added chorus plant and flower
2022-07-20 20:19:36 +01:00
Dylan T
c1acf44337
Implement cauldrons ( #5163 )
...
the following things are currently not implemented:
- particle/sound effects when an entity extinguishes itself
- particle/sound effects when mixing different stuff in a cauldron
- powder snow cauldron
both of these things are contingent on #5169 , but for the time being, the PR is functionally complete and I want to move on to something else without being stalled by the particle+sound problem (which I haven't yet decided how to solve).
2022-07-20 16:12:58 +01:00
Dylan K. Taylor
466307a43f
Attempting to reduce IDE performance hit of working in StringToItemParser
2022-07-20 15:46:43 +01:00
Dylan K. Taylor
fa201b081c
Added spore blossoms
...
I got tired of the flood of warning messages every time someone joined the dev server...
2022-07-19 20:28:12 +01:00
Dylan K. Taylor
6d4279671e
A giant hack to cut down code needed for runtime block serialization by 50%
...
this also avoids repeated information and inconsistencies.
2022-07-18 18:25:41 +01:00
Dylan K. Taylor
8660dfe576
Generate traits for runtime enum serialization instead of helper classes
2022-07-18 15:16:33 +01:00
Dylan K. Taylor
81edb1bed4
GlassBottle: implement filling using API changes from 4afd3dcabfa6b9c645ab8b15fade1e37f889482f
...
closes #4827
2022-07-16 20:00:43 +01:00
Dylan K. Taylor
d0ff6d2e36
Enable various types of interaction to return items to the player, without needing to have a bunch of boilerplate creative mode and held item checks
...
it became glaringly obvious that this was needed because of #4827 and #4868 .
this is further needed with the addition of cauldrons.
2022-07-16 19:50:33 +01:00
Dylan K. Taylor
4afd3dcabf
Merge branch 'next-minor' into next-major
2022-07-16 15:11:19 +01:00
Dylan K. Taylor
4e3964ffce
Armor: added clearCustomColor()
2022-07-16 15:10:07 +01:00