6f7c63e2a8
ItemFrame: add has-map bit
...
this makes the frame appear to cover the full block instead of the usual size.
2019-02-18 17:41:15 +00:00
8f26c3a2d4
Fix bonemeal count not reduced by CocoaBlock ( #2773 )
2019-02-18 16:31:07 +00:00
12dd6adfcc
Block: Derive light filter level based on isTransparent() return
...
this might be dynamic.
2019-02-18 13:27:22 +00:00
6cdd716c34
Merge branch '3.6'
2019-02-18 13:12:29 +00:00
6b51bf4a80
Merge branch '3.5' into 3.6
2019-02-18 13:11:16 +00:00
cba8d86c4f
Fixed Fire Aspect not working on TNT
2019-02-18 13:11:08 +00:00
b8adfd6948
edu: implement coloured and underwater torches
2019-02-18 11:37:57 +00:00
cd733c658b
Implement hard glass & hard glass pane
2019-02-18 10:50:29 +00:00
ab58d46a7f
Merge branch '3.6'
2019-02-17 16:12:21 -05:00
2e834c8f5c
Merge branch '3.5' into 3.6
2019-02-17 16:10:47 -05:00
f9873e9108
ItemFrame: fixed hardness
2019-02-17 16:10:21 -05:00
00b92eaa40
BlockFactory: Sort entries lexicographically ascending
2019-02-17 19:44:48 +00:00
22a21ecfd6
BlockTransaction: Take world in constructor
2019-02-16 19:57:55 +00:00
0794c94b4b
Rename BlockWriteBatch -> BlockTransaction
2019-02-16 19:53:15 +00:00
65ce1a7581
Block: fixed correct-type tiles getting overwritten
...
this manifested by crashing the server whenever someone used a furnace.
2019-02-15 13:37:57 +00:00
7b6d76871c
Block: add face and clickVector to onActivate() parameters, closes #267
...
this is an old old old issue, i don't know why it wasn't addressed sooner.
2019-02-13 14:29:59 +00:00
55be0716d8
Use DyeColor instead of ints for banners
2019-02-13 13:49:44 +00:00
01e7ebeb5c
Automate creation and deletion of Tiles for appropriate blocks
...
closes #880
2019-02-13 12:27:13 +00:00
1496eefb8b
Regenerated TODOs for item and b,locks
...
this sucks because it doesn't tell us anything about things that are meta values of other things (like dyes), but it's enough to start with.
2019-02-12 19:15:19 +00:00
59b62eaeba
Merge branch '3.6'
2019-02-12 16:59:06 +00:00
372545e47e
Merge branch '3.5' into 3.6
2019-02-12 16:56:53 +00:00
8913b48700
"Implement" info-update and reserved6
2019-02-12 16:56:12 +00:00
6ee4a0e090
Implement invisible bedrock to fix placement issues
...
I don't know why this wasn't done a long time ago, but here it is.
2019-02-12 16:41:23 +00:00
5227679602
sync item/block magic numbers with 1.9.0.15
2019-02-12 16:01:25 +00:00
7b3993730a
Block: Replace Color and WoodType magic numbers with type-safe objects
...
this provides automatic type safety without the need for magic number value checking everywhere.
2019-02-12 13:52:59 +00:00
0c89159cf2
Merge branch '3.6'
2019-02-09 19:22:00 +00:00
9e89f65094
Fixed handling for some new blocks which slipped through the frontline
2019-02-08 16:38:17 +00:00
b8703d5dff
Protocol changes for 1.9.0
2019-02-07 21:56:42 +00:00
1a8a04eab8
Merge branch '3.5'
2019-02-07 17:12:49 +00:00
1d0ffa06f8
TallGrass: fixed placement on dirt, closes #2552
2019-02-07 16:55:25 +00:00
55cd1f263d
SnowLayer: implement layers, closes #2657
2019-02-04 19:53:17 +00:00
c9f9f551f4
Merge branch '3.5' into master-rollback
2019-02-04 19:47:21 +00:00
ddbb5363ef
Block->getBreakTime() now throws InvalidArgumentException on items with bad efficiency values
2019-01-30 19:10:24 +00:00
90f3cb95d8
Merge branch '3.5'
2019-01-29 17:34:12 +00:00
0f9fdf6442
Fixed Cactus and Sugarcane growing through bad blocks
...
closes #2714
2019-01-29 17:32:48 +00:00
c5f0665853
Merge branch '3.5'
2019-01-29 14:05:00 +00:00
80d48161d3
Crops: fixed consuming bonemeal on fully-grown crop, closes #2704
2019-01-29 13:41:02 +00:00
78dfcc5f2d
Move Effect and EffectInstance to entity\effect namespace
2019-01-28 15:41:07 +00:00
9826abd83e
Stair: fixed crash if player is null
2019-01-26 16:59:03 +00:00
48c8c2a8c3
ItemFrame: address crashdump 2113950
...
thanks Mojang for designing this lovely system where so much undefined behaviour is able to take place :(
2019-01-26 16:58:25 +00:00
425ad6101f
Block: rename onEntityCollide() -> onEntityInside()
...
this better describes what the hook is for.
2019-01-20 18:09:47 +00:00
6df983da3e
Merge branch '3.5'
2019-01-19 16:24:41 +00:00
4fd3bee360
Entity: Address fireticks crashdumps
...
This will now throw an exception at the source instead of crashing when the entity is saved, which should put the blame on the correct plugin responsible for this.
This also includes magic method hacks to preserve backwards compatibility, since the fireTicks field is now protected.
2019-01-19 16:05:10 +00:00
242c7e3777
Grass: remove premature optimization
...
this is reading full-block from the chunk every access, which is slower than accessing the level block-cache.
2019-01-14 23:14:31 +00:00
78cb6445a5
Introduce TileFactory
2019-01-07 00:20:24 +00:00
7d827a1c65
Introduce EntityFactory
...
This contains all of the static stuff that was previously embedded in the Entity static root. This solves a bunch of problems like circular dependencies between parent and child classes, encapsulating logic and reducing the size of the enormous Entity.php.
2019-01-06 23:54:29 +00:00
b1cef8509a
Revamp Entity construction
...
This is a similar refactor to the one I recently did for tiles.
- Entity::createEntity() is removed. In its place are Entity::create() (runtime creation, use where you'd use a constructor, accepts a ::class parameter, throws exceptions on unknown entities) and Entity::createFromData() (internal, used to restore entities from chunks, swallows unknown entities and returns null).
- Entity::registerEntity() is renamed to Entity::register().
- Added Entity::override() to allow overriding factory classes without touching save IDs. This allows more cleanly extending & overriding entities. This method only allows overriding registered Entity classes with children of that class, which makes code using the factory much more sane and allows to provide safety guarantees which make the code less nasty.
- Entity::getKnownEntityTypes() is renamed to Entity::getKnownTypes().
- ProjectileItem::getProjectileEntityType() now returns a ::class constant instead of a stringy ID.
- Cleaned up a bunch of nasty code, particularly in Bow.
2019-01-06 23:33:36 +00:00
d83f024a1f
Merge branch '3.5'
2019-01-05 09:27:16 +00:00
254281cd5e
Ice: don't create water for creative players, fixes #2622
2019-01-05 09:26:35 +00:00
d8d04aeb53
fixup some imports
2019-01-04 23:49:32 +00:00