ab002ca06d
Improved handling of temporary inventory windows
...
evacuation behaviour is now consistent regardless of who is doing it
2021-11-08 23:36:58 +00:00
19a3efe893
.......
2021-11-08 18:57:14 +00:00
a1ecdc27e5
Removed Vanilla*::fromString()
...
these were misbegotten and should never have existed.
If someone really needs these for some reason, they can use getAll()[name].
2021-11-08 18:52:14 +00:00
45edb94607
Crafting tables now work the same way as anvils and enchanting tables
...
Removing almost all special-case logic for crafting tables.
2021-11-07 16:20:07 +00:00
07b1cff306
Bonemeal is no longer consumed when cancelling plant growth events ( #4551 )
2021-11-05 16:15:55 +00:00
ead8ccf08d
CocoaBlock: call BlockGrowEvent when growing for any reason ( #4536 )
2021-11-02 17:05:07 +00:00
e34364412b
Replace InvalidStateException usages with InvalidArgument or LogicException
2021-11-02 16:05:54 +00:00
5b8ce7e3e2
Cake: fixed desync on cancellation of eating
...
closes #3591
we don't support eating in creative right now, but the cake shouldn't appear to be eaten when it's not.
2021-10-30 21:02:24 +01:00
42ede30e77
...
2021-10-23 23:57:28 +01:00
04aedc6494
Updated BedrockProtocol
2021-10-23 23:54:49 +01:00
c773e43eda
Updated BedrockProtocol to pmmp/BedrockProtocol@97fa88e9ef
2021-10-23 01:16:45 +01:00
321345fcc8
Sapling: simplify condition
2021-10-13 23:00:38 +01:00
0ac9f4fe61
BlockFactory: move SweetBerryBush to its proper place
2021-10-13 22:26:51 +01:00
49c1e4c06e
Implement fletching table ( #4501 )
2021-10-12 21:21:05 +01:00
fd2df637b6
Block: rename getPositionOffset() -> getModelPositionOffset()
...
this gives a better idea of what the function does, and is also much less annoying for auto complete.
2021-10-10 22:35:38 +01:00
09715906c8
StructureGrowEvent: added API to get the player who caused the growth ( #4445 )
2021-10-09 22:51:46 +01:00
8e3772ceef
Block: fixed incorrect behaviour of isSameState() for multi-ID blocks
...
fixes #4492
2021-10-06 23:16:03 +01:00
42bf9578ce
Remove unused constants
2021-10-01 22:05:03 +01:00
6a8280b1ba
Lever: add block property APIs
2021-09-29 00:20:57 +01:00
eb80515e99
Fixed incorrect parameter checking in BlockFactory::get() ( #4476 )
2021-09-24 15:47:11 +01:00
1ce388ca0b
Liquid: add getMinAdjacentSourcesToFormSource(), remove circular dependency between Liquid and Water
...
this unpleasantly-named method allows controlling the source-forming behaviour of liquids by changing the required number of adjacent sources that must be present in order for a new source to form. This allows stuff like non-infinite water.
2021-09-19 15:59:16 +01:00
971cbe3929
Liquid: restore mistakenly removed check
2021-09-19 15:42:17 +01:00
18de35ffc7
Liquid: use facing instead of hardcoded integers
2021-09-19 15:37:03 +01:00
576c33ee8f
Liquid: make flow vector calculation less cancerous to read
2021-09-18 23:04:28 +01:00
6b2ab15ea1
MinimumCostFlowCalculator: fix bug caused by recent change
2021-09-18 16:20:01 +01:00
027f7e249b
MinimumCostFlowCalculator: Use match statements where possible
...
coincidentally, this also fixes the build.
2021-09-18 16:17:08 +01:00
a9c4238c59
Liquid: Extract a big chunk of code to MinimumCostFlowCalculator
2021-09-18 16:13:38 +01:00
34e1b244fa
Liquid: split canFlowInto() over multiple lines
...
the original version is very hard to read.
2021-09-18 15:53:54 +01:00
b047100719
Liquid: improve minimum cost calculation handling
2021-09-18 15:52:16 +01:00
1b5071e074
Liquid: make some code slightly less cancerous to read
2021-09-18 15:28:45 +01:00
a1c82da2f2
Liquid: remove useless continue
2021-09-12 16:03:52 +01:00
84170ad3e1
Furnace: fixed deactivation after being reloaded from disk (regression from PM3)
...
closes #4430
2021-09-12 15:49:33 +01:00
4111d92b98
Stop hardcoding chunk dimensions everywhere ( #4443 )
2021-09-10 16:13:25 +01:00
710345d4b0
Implemented Farmland turns to dirt when jumped on. ( #4434 )
2021-09-06 12:55:52 +01:00
df3b112877
Implemented slime blocks
2021-09-05 20:46:59 +01:00
8e2486b96a
Bed: bounce doesn't apply if the entity was sneaking
2021-09-05 20:14:17 +01:00
ded778f422
Implemented bed bouncing
2021-09-05 20:11:49 +01:00
2e153624ad
Anvil: actually add slot constants, this time
2021-09-03 12:44:41 +01:00
963f4a9cf3
Added constant slot IDs for Furnace, Enchanting, Anvil and Brewing Stand inventories
2021-09-03 12:16:07 +01:00
c7f78bec15
Added missing change to complete beba0ffe15
2021-08-27 20:33:17 +01:00
8f89c04c51
Refactor Tree classes ( #4407 )
2021-08-27 20:11:05 +01:00
4189fbdaef
Added StructureGrowEvent ( #4354 )
...
This event is currently fired for tree and bamboo growth. Its intended use is for any plant growth that affects multiple blocks at once.
TODO: We could explore using this for cacti and sugarcane?
2021-08-25 14:05:30 +01:00
7fd712c1ff
Refactor Block & Tile: getPos() to getPosition() ( #4395 )
...
this also changes the name of the class property 'pos' to 'position' as well as Block->getPosOffset() to Block->getPositionOffset()
2021-08-23 14:01:32 +01:00
270ee5c085
Simplify registry method generation
2021-08-22 23:02:36 +01:00
686bf398d5
BlockFactory: simplify get() code
2021-08-21 15:41:00 +01:00
b3298d7c77
Fix Skull->asItem() ( #4375 )
2021-08-16 19:06:30 +01:00
60ac76a3bc
Remove more usages of hardcoded translation keys
2021-08-15 19:22:40 +01:00
804d02b086
TranslationContainer: added prefix(), postfix() and format()
2021-08-14 16:08:22 +01:00
27e0ecf7ee
Implemented Blast Furnace and Smoker ( #4362 )
2021-08-12 23:27:05 +01:00
8221475ce2
BlockDataSerializer: fix wrong exception type being thrown
2021-08-02 19:20:19 +01:00