Commit graph

2319 commits

Author SHA1 Message Date
CraftBukkit/Spigot
1c486f86db Add Material.isFuel to check if a material is a furnace fuel.
By: Phoenix616 <mail@moep.tv>
2017-03-23 23:18:32 +01:00
CraftBukkit/Spigot
a29c3edf2f SPIGOT-3142: Plugin event changes not using TeleportCause.PLUGIN
By: md_5 <git@md-5.net>
2017-03-24 15:09:34 +11:00
CraftBukkit/Spigot
100722e44b SPIGOT-3141: Missing TeleportCause.SPECTATE when lift clicking spectate
By: md_5 <git@md-5.net>
2017-03-24 15:08:19 +11:00
CraftBukkit/Spigot
f0c1225026 Fix trailing whitespace in CraftChunk
By: md_5 <git@md-5.net>
2017-03-23 20:19:29 +11:00
CraftBukkit/Spigot
c839929065 SPIGOT-3143: Don't decrease item stack size if VehicleCreateEvent is cancelled
By: BlackHole <black-hole@live.com>
2017-03-21 23:03:20 +01:00
CraftBukkit/Spigot
b18c5c741b Process entity portalling towards the end of a tick.
Cross world teleportation works by taking a copy of an entity and moving it to a new world. After this happens the original entity is marked as dead so as to be removed from the original world, however it still undergoes one further tick in the main world, but with some information from the new world. It is not so easy to break out of this tick cycle if needed, so instead we move the portalling process towards the end of an existing tick. This ensures that the entity will not be spuriously ticked.

By: md_5 <git@md-5.net>
2017-03-20 15:41:15 +11:00
CraftBukkit/Spigot
3d517d9d80 Properly validate player experience bar progress
By: Parker Hawke <hawkeboyz2@hotmail.com>
2017-03-19 18:31:40 -04:00
CraftBukkit/Spigot
49200e382f Add getWidth + getHeight for Entity
By: bramhaag <bramhagens@hotmail.nl>
2017-03-18 11:08:37 +01:00
CraftBukkit/Spigot
cedf1495bd SPIGOT-3128: Shift VehicleCreateEvent calling.
By: md_5 <git@md-5.net>
2017-03-15 20:48:47 +11:00
CraftBukkit/Spigot
d8033d64c6 SPIGOT-3126: Make fireballs do a better job of respecting mobGriefing
By: md_5 <git@md-5.net>
2017-03-15 15:26:36 +11:00
CraftBukkit/Spigot
7489812328 Ensure PlayerResourcePackStatusEvent is synchronous
By: md_5 <git@md-5.net>
2017-03-14 21:56:19 +11:00
CraftBukkit/Spigot
e075d320d4 Add getIgnitingBlock to BlockBurnEvent
By: Nathan Wolf <nathan@elmakers.com>
2017-03-08 14:20:24 -08:00
CraftBukkit/Spigot
843a9ac2db Don't call super update on unplaced command block metas
By: md_5 <git@md-5.net>
2017-03-10 20:30:20 +11:00
CraftBukkit/Spigot
0df899a244 Add more notch inventory conversions
By: md_5 <git@md-5.net>
2017-03-10 20:03:31 +11:00
CraftBukkit/Spigot
862f4e6c0d SPIGOT-3114: Initialize custom SHULKER_BOX slots
By: md_5 <git@md-5.net>
2017-03-10 20:01:31 +11:00
CraftBukkit/Spigot
f6f4501444 SPIGOT-3110: SHULKER_BOX InventoryType
By: md_5 <git@md-5.net>
2017-03-08 17:56:08 +11:00
CraftBukkit/Spigot
5e2981ee0f SPIGOT-3107: Try and improve shield knockback further
By: md_5 <git@md-5.net>
2017-03-08 14:51:48 +11:00
CraftBukkit/Spigot
11c88dc8f2 SPIGOT-3108: Hack around mirroring empty item stacks
By: md_5 <git@md-5.net>
2017-03-08 14:33:40 +11:00
CraftBukkit/Spigot
3de67df146 SPIGOT-3105: BlockFadeEvent for large snow blocks
By: md_5 <git@md-5.net>
2017-03-08 14:24:11 +11:00
CraftBukkit/Spigot
0e4ffd62e1 MC-111753, SPIGOT-2971: Brewing stand not reloading
By: md_5 <git@md-5.net>
2017-02-21 20:47:40 +11:00
CraftBukkit/Spigot
1f9370d293 SPIGOT-3075: EntityTeleportEvent for Shulkers
By: md_5 <git@md-5.net>
2017-02-20 09:55:24 +11:00
CraftBukkit/Spigot
ed87a3caf9 SPIGOT-3068: API for localized item names
By: md_5 <git@md-5.net>
2017-02-16 11:49:46 +11:00
CraftBukkit/Spigot
6c52504f93 SPIGOT-3067: Wither skeleton heads not dropping
By: md_5 <git@md-5.net>
2017-02-15 10:11:41 +11:00
CraftBukkit/Spigot
0a74e4d700 SPIGOT-2152: Method to set resource pack + hash.
By: Max Lee <mail@moep.tv>
2017-02-14 14:00:30 +01:00
CraftBukkit/Spigot
4b11aba0f7 SPIGOT-3063: Call EntityAirChangeEvent
By: md_5 <git@md-5.net>
2017-02-14 10:34:56 +11:00
CraftBukkit/Spigot
0a07809cce SPIGOT-3054: Correct LLamaSpit launching
By: md_5 <git@md-5.net>
2017-02-09 09:14:44 +11:00
CraftBukkit/Spigot
10d09dbcc2 SPIGOT-3051: Set pitch/yaw for spawned boats
By: md_5 <git@md-5.net>
2017-02-06 11:58:42 +11:00
CraftBukkit/Spigot
2c79e73a5c Update SQLite to 3.16 for performance improvements and architecture compat
By: md_5 <git@md-5.net>
2017-02-01 13:16:30 +11:00
CraftBukkit/Spigot
3f242883c4 Add implementation for LlamaSpit in ProjectileSource#launchProjectile
By: Parker Hawke <hawkeboyz2@hotmail.com>
2017-01-31 21:12:17 -05:00
CraftBukkit/Spigot
52753fe5e1 Increase expiration time to two weeks.
By: md_5 <git@md-5.net>
2017-01-31 21:39:17 +11:00
CraftBukkit/Spigot
3b1a28ec19 SPIGOT-3044: BlockDispenseEvent for shulker boxes
By: md_5 <git@md-5.net>
2017-01-31 21:38:55 +11:00
CraftBukkit/Spigot
c1c5f27be2 Update MySQL Driver Version to 5.1.40
By: md_5 <git@md-5.net>
2017-01-31 21:30:09 +11:00
CraftBukkit/Spigot
634ad7d00e SPIGOT-3040: Round health to float for validation
By: md_5 <git@md-5.net>
2017-01-28 11:41:09 +11:00
CraftBukkit/Spigot
4166ac5145 Make tile activeContainer assignment consistent.
By: md_5 <git@md-5.net>
2017-01-27 11:42:21 +11:00
CraftBukkit/Spigot
49758a0994 SPIGOT-3033: Alter behaviour of cancelled hopper transfers (reverted from commit ca9bfb2d1f)
By: md_5 <git@md-5.net>
2017-01-26 14:08:04 +11:00
CraftBukkit/Spigot
b05bba2d39 SPIGOT-3037: WorldBorder#isInside(Location)
By: md_5 <git@md-5.net>
2017-01-26 11:16:39 +11:00
CraftBukkit/Spigot
ca9bfb2d1f SPIGOT-3033: Alter behaviour of cancelled hopper transfers
By: md_5 <git@md-5.net>
2017-01-26 11:13:00 +11:00
CraftBukkit/Spigot
c98102fd99 SPIGOT-3031: Pigs are not dropping their saddle
By: md_5 <git@md-5.net>
2017-01-24 13:39:22 +11:00
CraftBukkit/Spigot
49376274b6 Re-enable the vanilla debug MethodProfiler and /debug command
This is highly useful for profiling vanilla code, and in some cases plugin code.  It is somewhat expensive, though, which is why it was initially disabled.

I chose to use a system property instead of a configuration setting because 1) the MethodProfiler is exclusive to CraftBukkit and not part of the general API (the timings system is the general API equivalent), and 2) using a static final boolean property _may_ allow the JITter to optimize out the methods when disabled (though I'm not sure of it).

There are several changes to fix cases where the profiler code was broken slightly by other craftbukkit changes.  All of cases have been fixed, except for the block entity ticking one, due to the cost of the getSimpleName call.  For that, a ticking entry is used instead, so that time spent actually ticking the block entities can be compared with time processing the list.

This (effectively) reverts 7dde6cc566.

By: Pokechu22 <Pokechu022@gmail.com>
2017-01-18 17:42:35 -08:00
CraftBukkit/Spigot
03cf4ffdf1 Add API to set Arrow pickup status
By: xGhOsTkiLLeRx <ratchet.player@gmx.de>
2017-01-18 10:01:28 +11:00
CraftBukkit/Spigot
d6082cde7f SPIGOT-3003: Fix custom dropper / beacons.
By: md_5 <git@md-5.net>
2017-01-11 09:53:16 +11:00
CraftBukkit/Spigot
d66b605829 SPIGOT-3002: Mob spawners are valid
By: md_5 <git@md-5.net>
2017-01-11 09:24:08 +11:00
CraftBukkit/Spigot
6e7031ad9a SPIGOT-2997: Explicitly disallow invalid tiles to be opened
By: md_5 <git@md-5.net>
2017-01-10 09:56:20 +11:00
CraftBukkit/Spigot
5be013beb5 Fix crash if entities other than players (somehow?) consume their item.
By: md_5 <git@md-5.net>
2017-01-09 14:28:49 +11:00
CraftBukkit/Spigot
c4d20d3951 10 day build expire
By: md_5 <git@md-5.net>
2017-01-09 10:38:33 +11:00
CraftBukkit/Spigot
7e1910e6d4 SPIGOT-2990: EntityTeleportEvent for tameable animals following owner
By: md_5 <git@md-5.net>
2017-01-05 20:44:26 +11:00
CraftBukkit/Spigot
df1033f5f9 SPIGOT-2989: Use existing horse inventory object.
By: md_5 <git@md-5.net>
2017-01-05 15:03:22 +11:00
CraftBukkit/Spigot
e63cab01fc SPIGOT-826: Add method to retrieve entity by UUID
By: Zach Brown <zach.brown@destroystokyo.com>
2017-01-04 21:28:31 -06:00
CraftBukkit/Spigot
0bd65c1b02 SPIGOT-2640: API for multiple passengers per entity
By: md_5 <git@md-5.net>
2017-01-04 10:53:07 +11:00
CraftBukkit/Spigot
abf429e3bb SPIGOT-1915: Fix players seeing their own passengers
By: md_5 <git@md-5.net>
2017-01-04 10:50:02 +11:00
CraftBukkit/Spigot
44f4a83e59 More robust inventory handling
By: md_5 <git@md-5.net>
2017-01-04 10:04:27 +11:00
CraftBukkit/Spigot
a1cc3a4382 SPIGOT-2980: Improve SpawnEgg NBT application and ItemStack conversion.
By: md_5 <git@md-5.net>
2017-01-02 16:13:25 +11:00
CraftBukkit/Spigot
86649dea13 Recover spawn egg data from UNSPECIFIC meta.
By: md_5 <git@md-5.net>
2017-01-02 15:29:11 +11:00
CraftBukkit/Spigot
ed9b479bcb Clear effectsToProccess after applying potion effects
By: md_5 <git@md-5.net>
2017-01-02 13:51:16 +11:00
CraftBukkit/Spigot
85a119a172 SPIGOT-2977: Pass setAmount(0) through to wrapped ItemStack.
This class needs to be rewritten with more consistent semantics and alignment with Minecraft losing null, but that is probably a job for 1.12

By: md_5 <git@md-5.net>
2017-01-02 10:04:19 +11:00
CraftBukkit/Spigot
0779610d64 SPIGOT-2969: Shulker box removal not updating comparators
By: md_5 <git@md-5.net>
2016-12-28 14:23:52 +11:00
CraftBukkit/Spigot
93623ce896 SPIGOT-2966: Entirely remove problematic check
By: md_5 <git@md-5.net>
2016-12-28 09:50:40 +11:00
CraftBukkit/Spigot
1f6a5ecc06 SPIGOT-2960: Fire HOTBAR_MOVE_AND_READD in more cases
By: md_5 <git@md-5.net>
2016-12-27 12:14:55 +11:00
CraftBukkit/Spigot
e3b7ad4ef3 SPIGOT-2964: Correct number of shelve sin PrepareEnchantEvent
By: md_5 <git@md-5.net>
2016-12-27 11:53:09 +11:00
CraftBukkit/Spigot
2d5ab1f7b5 SPIGOT-2963: Endless loop in CraftHumanEntity#openMerchant
By: md_5 <git@md-5.net>
2016-12-27 09:01:22 +11:00
CraftBukkit/Spigot
14eb034e4b Increase expire time to 7 days
By: md_5 <git@md-5.net>
2016-12-26 09:39:59 +11:00
CraftBukkit/Spigot
6333307ee3 SPIGOT-2957 getSeaLevel() should return the real sea level, not a hard-coded value
By: Ryan Michela <deltahat@gmail.com>
2016-12-25 11:26:00 -05:00
CraftBukkit/Spigot
83554f3290 Correct some code.
By: md_5 <git@md-5.net>
2016-12-24 22:52:50 +11:00
CraftBukkit/Spigot
d338127ab9 SPIGOT-2127: Add DamageCause.ENTITY_SWEEP_ATTACK
By: md_5 <git@md-5.net>
2016-12-23 22:39:33 +11:00
CraftBukkit/Spigot
a272470d6f Additional fireworks damage tracking.
By: md_5 <git@md-5.net>
2016-12-23 22:32:40 +11:00
CraftBukkit/Spigot
64b9c40cd7 MC-88491: Fix projectile colliding with shooter
In some situations, a projectile made collide with the entity that shot
it. This occurs because the game sets the ignored entity incorrectly.
Our fix is to ensure that the shooter is the only entity that gets
ignored by the projectile.

By: Zach Brown <zach.brown@destroystokyo.com>
2016-12-22 15:29:23 -06:00
CraftBukkit/Spigot
2b518036f5 SPIGOT-2953: Set damager for fireworks
By: md_5 <git@md-5.net>
2016-12-22 20:26:27 +11:00
CraftBukkit/Spigot
e6b0af2e55 SPIGOT-2944: Just apply filtering to players
By: md_5 <git@md-5.net>
2016-12-22 16:50:24 +11:00
CraftBukkit/Spigot
0c321dd15d Update to Minecraft 1.11.2
By: md_5 <git@md-5.net>
2016-12-21 22:00:00 +11:00
CraftBukkit/Spigot
afecf1c36c SPIGOT-2948: Alter filtering logic
By: md_5 <git@md-5.net>
2016-12-21 17:12:39 +11:00
CraftBukkit/Spigot
f9a809b2ba Update to Minecraft 1.11.1
By: md_5 <git@md-5.net>
2016-12-21 07:00:00 +11:00
CraftBukkit/Spigot
74902a47aa SPIGOT-2936: Simplify WorldBorder diff
By: md_5 <git@md-5.net>
2016-12-19 23:05:39 +11:00
CraftBukkit/Spigot
595c69ab7b SPIGOT-2930: Shift calling of PlayerItemBreakEvent to before break.
By: md_5 <git@md-5.net>
2016-12-18 09:26:36 +11:00
CraftBukkit/Spigot
75f7baf1ad SPIGOT-2926: Check spawn-npcs setting for NPCs.
Probably should refactor this code to be more similar to Vanilla in future.

By: md_5 <git@md-5.net>
2016-12-17 14:26:09 +11:00
CraftBukkit/Spigot
348449a44a SPIGOT-2923: Added PotionEffectType#getColor()
By: Lukas Hennig <lukas@wirsindwir.de>
2016-12-16 17:22:21 +01:00
CraftBukkit/Spigot
fe586949bf SPIGOT-2924: Improve handling of Jukeboxes playing nothing.
By: md_5 <git@md-5.net>
2016-12-17 09:45:14 +11:00
CraftBukkit/Spigot
d69f49d486 SPIGOT-1036: Add API to manipulate sendTitle timings.
By: md_5 <git@md-5.net>
2016-12-16 09:48:14 +11:00
CraftBukkit/Spigot
694b7ad459 SPIGOT-2918: Always call EnchantItemEvent
By: md_5 <git@md-5.net>
2016-12-14 14:38:55 +11:00
CraftBukkit/Spigot
54e60aee75 SPIGOT-2913: Only one enchantment applied to items
By: md_5 <git@md-5.net>
2016-12-13 08:44:50 +11:00
CraftBukkit/Spigot
d381e7b934 SPIGOT-2912: Fix enchanting with ID of 0
By: md_5 <git@md-5.net>
2016-12-12 09:35:31 +11:00
CraftBukkit/Spigot
a9e3f93ed3 Add getLocation for InventoryEnderChest
By: md_5 <git@md-5.net>
2016-12-11 16:41:40 +11:00
CraftBukkit/Spigot
b5bd9528a0 Add EnchantmentOffer to PrepareItemEnchantEvent
By: md_5 <git@md-5.net>
2016-12-11 11:10:38 +11:00
CraftBukkit/Spigot
25e61b60e4 SPIGOT-2242: Handle changed item in PlayerPickupArrowEvent
By: md_5 <git@md-5.net>
2016-12-10 12:48:56 +11:00
CraftBukkit/Spigot
87d502339e SPIGOT-2524: Update inventory for cancelled air right click
By: md_5 <git@md-5.net>
2016-12-10 12:36:09 +11:00
CraftBukkit/Spigot
8b77464a94 SPIGOT-2907: Improve EntityResurrectEvent handling
By: md_5 <git@md-5.net>
2016-12-10 12:16:14 +11:00
CraftBukkit/Spigot
b4a50e447b SPIGOT-2908: Correctly spawn LlamaSpit
By: md_5 <git@md-5.net>
2016-12-10 12:10:28 +11:00
CraftBukkit/Spigot
05fbc8df18 Clean up BlockFlowing
By: md_5 <git@md-5.net>
2016-12-09 12:56:49 +11:00
CraftBukkit/Spigot
2fa7ac3174 SPIGOT-2886: Call BlockFormEvent when Lava and Water collide
By: Brokkonaut <hannos17@gmx.de>
2016-12-09 12:53:15 +11:00
CraftBukkit/Spigot
9e8988306c Use CraftEventFactory for BlockFormEvent
By: md_5 <git@md-5.net>
2016-12-09 12:45:21 +11:00
CraftBukkit/Spigot
cd5305a554 Add API to get default value of an Attribute
By: md_5 <git@md-5.net>
2016-12-09 12:31:08 +11:00
CraftBukkit/Spigot
597dc19283 SPIGOT-2894: Preserve unreadable spawn egg data in memory
By: md_5 <git@md-5.net>
2016-12-07 10:44:57 +11:00
CraftBukkit/Spigot
00609fd3df SPIGOT-2891: Remove chunks if first check is false
Minecraft does double checking for synchronous generation, but since we generate chunks asynchronously we are required to check the first condition also in case the chunk was loaded between ticks. We leave the other logic to be cleaned up by the loops below.

By: md_5 <git@md-5.net>
2016-12-06 22:05:58 +11:00
CraftBukkit/Spigot
9c16a5f61a Implement pre-spawn API to allow modifications to spawned entities.
See preceding commit for why this change was included.

By: Xor Boole <mcyoung@mit.edu>
2016-12-06 21:39:20 +11:00
CraftBukkit/Spigot
dd89db67a5 SPIGOT-1592: Implement ItemMeta for Spawn Eggs
The Minecraft implementation of spawn eggs is able to construct an entity using all data that is present in the save format, however since the Bukkit API has no such way to construct an entity unattached to a world, and it appears creating such a way is a very challenging task, the decision was instead made to add this API now that 1.11 has entities which may not be represented by data values.
In the future it may be possible to implement a more expanded API cognate with this one.

By: Matthew <stteg@hotmail.com>
2016-12-06 21:15:10 +11:00
CraftBukkit/Spigot
e40bffa82a SPIGOT-2890: SetBiome not saving changes
By: md_5 <git@md-5.net>
2016-12-06 20:46:04 +11:00
CraftBukkit/Spigot
db5c1e3e66 Implement EntityDeathEvent for ArmorStands
By: Senmori <thesenmori@gmail.com>
2016-12-03 16:32:13 -05:00
CraftBukkit/Spigot
24fdb26050 SPIGOT-2889: Error cancelling creative InventoryClickEvent
By: md_5 <git@md-5.net>
2016-12-05 09:07:25 +11:00
CraftBukkit/Spigot
5443bf1110 #326: Convert BlockMeta to handle older serialized items.
By: Jacob Martin <jjm_223@hotmail.com>
2016-12-03 10:51:53 +11:00
CraftBukkit/Spigot
83cf54fd9d SPIGOT-2879: Change order of entity addition for ender pearls
By: md_5 <git@md-5.net>
2016-12-03 09:55:36 +11:00
CraftBukkit/Spigot
bdf0df74a9 SPIGOT-911: Add hitBlock to PorjectileHitEvent
By: md_5 <git@md-5.net>
2016-12-02 09:38:50 +11:00