13
0
geforkt von Mirrors/Paper

2251 Commits

Autor SHA1 Nachricht Datum
CraftBukkit/Spigot
a626609da1 SPIGOT-2911: Implement AbstractHorseInventory
By: md_5 <git@md-5.net>
2018-01-28 09:55:16 +11:00
CraftBukkit/Spigot
6f9c0bf3cb Expand CreatureSpawner API
By: Senmori <thesenmori@gmail.com>
2018-01-24 17:18:25 +11:00
CraftBukkit/Spigot
b7e9ff9023 SPIGOT-3751: BossBar flag methods reversed
By: md_5 <git@md-5.net>
2018-01-10 12:40:38 +11:00
CraftBukkit/Spigot
7e3f873771 Fix Block PistonMoveReaction
By: md_5 <git@md-5.net>
2018-01-10 10:47:26 +11:00
CraftBukkit/Spigot
05db940713 Fix opening shulker inventories
By: md_5 <git@md-5.net>
2018-01-08 16:07:18 +11:00
CraftBukkit/Spigot
30fe3b362c Remove a bunch of spurious _INVALID_ methods.
By: md_5 <git@md-5.net>
2018-01-05 13:04:18 +11:00
CraftBukkit/Spigot
2f48bbf4cd print -> println in world start region preparation
By: md_5 <git@md-5.net>
2018-01-02 20:24:33 +11:00
CraftBukkit/Spigot
39edf63dc2 SPIGOT-3724: Make CraftMetaSkull work reliably for player skulls
By: md_5 <git@md-5.net>
2018-01-01 12:15:43 +11:00
CraftBukkit/Spigot
9a972c6f30 SPIGOT-355: API for Villager careers
By: Senmori <thesenmori@gmail.com>
2017-12-31 21:21:03 +11:00
CraftBukkit/Spigot
7fc559ec56 Send title timings before sending titles
By: md_5 <git@md-5.net>
2017-12-30 13:39:54 +11:00
CraftBukkit/Spigot
a024f4c8d2 Remove unused private static final variable
By: md_5 <git@md-5.net>
2017-12-28 14:47:57 +11:00
CraftBukkit/Spigot
02b4af5356 SPIGOT-3696: Clearing custom name of some blocks does not work
By: blablubbabc <lukas@wirsindwir.de>
2017-12-16 03:43:04 +01:00
CraftBukkit/Spigot
f6d4eae5c3 Allow unloading all worlds except the main one
By: md_5 <git@md-5.net>
2017-12-16 10:19:00 +11:00
CraftBukkit/Spigot
dfa7c9eedb SPIGOT-2892: Fix some clone implementations and add unit test
By: md_5 <git@md-5.net>
2017-12-16 10:18:34 +11:00
CraftBukkit/Spigot
1a8d9ecfc8 SPIGOT-3684: Team#setColor does not trigger scoreboard update
By: md_5 <git@md-5.net>
2017-12-08 09:31:20 +11:00
CraftBukkit/Spigot
43c03ad8af SPIGOT-3664: Add Material getter to ChunkSnapshot
By: md_5 <git@md-5.net>
2017-12-07 10:25:16 +11:00
CraftBukkit/Spigot
69777fb8dc SPIGOT-3663: Add plugin parameter to hidePlayer+showPlayer.
By: Chris Cowan <agentme49@gmail.com>
2017-12-02 16:58:41 -08:00
CraftBukkit/Spigot
afb2211b12 Fix some formatting in CraftEventFactory
By: md_5 <git@md-5.net>
2017-11-22 17:05:59 +11:00
CraftBukkit/Spigot
1256b90fd8 SPIGOT-1505: PlayerItemMendEvent
By: Senmori <thesenmori@gmail.com>
2017-11-21 10:17:31 +11:00
CraftBukkit/Spigot
cd791fe451 SPIGOT-690: Try to make force opened enchant tables work a bit better
By: md_5 <git@md-5.net>
2017-11-18 10:48:16 +11:00
CraftBukkit/Spigot
a8a168aba4 Add setSpawnLocation(Location)
By: Cory Redmond <ace@ac3-servers.eu>
2016-07-11 02:20:23 +01:00
CraftBukkit/Spigot
82913cc71b Don't special case 'invalid' usernames for UUIDs.
By: md_5 <git@md-5.net>
2014-04-20 18:58:00 +10:00
CraftBukkit/Spigot
2a6be42be0 Use generics in health scaling methods
By: md_5 <git@md-5.net>
2017-11-17 11:08:26 +11:00
CraftBukkit/Spigot
70c2a1b52a CraftMetaFirework: AssertionError -> IllegalArgumentException
By: md_5 <git@md-5.net>
2017-11-17 10:15:14 +11:00
CraftBukkit/Spigot
162a64ac95 SPIGOT-1891: Player.playNote should use RECORDS category
This is what NoteBlock.play etc uses.

By: md_5 <git@md-5.net>
2017-11-14 09:57:46 +11:00
CraftBukkit/Spigot
660b7ed1b6 SPIGOT-3649: Backwards check in playEffect
By: md_5 <git@md-5.net>
2017-11-13 08:47:04 +11:00
CraftBukkit/Spigot
648dd6e32f Add Score.isScoreSet()Z API.
By: md_5 <git@md-5.net>
2017-11-10 10:50:58 +11:00
CraftBukkit/Spigot
b6ce01dac8 Catch all exceptions from plugin conversation handling
By: md_5 <git@md-5.net>
2017-11-10 10:44:27 +11:00
CraftBukkit/Spigot
d87e31cf51 SPIGOT-3644: Fix missed yaw callsite update
By: md_5 <git@md-5.net>
2017-11-09 13:07:25 +11:00
CraftBukkit/Spigot
4a0e197bb8 Implement max fuse tick & explosion radius methods to Creeper
By: Parker Hawke <hawkeboyz2@hotmail.com>
2017-11-07 07:38:58 -05:00
CraftBukkit/Spigot
8e873a6220 SPIGOT-3629: Greatly expand entity effect API
By: md_5 <git@md-5.net>
2017-11-07 19:32:24 +11:00
CraftBukkit/Spigot
f7d75ce15b SPIGOT-3637: Adjust yaw yet again
By: md_5 <git@md-5.net>
2017-11-07 17:21:38 +11:00
CraftBukkit/Spigot
5f46670617 SPIGOT-3622: Issue in some combinations of spawn protection
By: md_5 <git@md-5.net>
2017-10-28 16:00:15 +11:00
CraftBukkit/Spigot
e3d53900c0 SPIGOT-3613: Success count not reset for exceptions.
By: md_5 <git@md-5.net>
2017-10-17 21:08:43 +11:00
CraftBukkit/Spigot
009d5ad78b SPIGOT-3605: Spawn eggs not saving internal data
By: md_5 <git@md-5.net>
2017-10-09 18:32:45 +11:00
CraftBukkit/Spigot
b147b1834f Fix zombie professions
By: md_5 <git@md-5.net>
2017-10-09 18:18:11 +11:00
CraftBukkit/Spigot
28399d699f SPIGOT-3587: Set head rotation when spawning entity
By: md_5 <git@md-5.net>
2017-10-01 11:01:49 +11:00
CraftBukkit/Spigot
32a52470be SPIGOT-3565: Head yaw is "more accurate" for living entities
By: md_5 <git@md-5.net>
2017-09-28 16:23:14 +10:00
CraftBukkit/Spigot
6f9b17e08b Fix active async tasks not cancelled by CraftScheduler#cancelTasks(Plugin)
By: blablubbabc <lukas@wirsindwir.de>
2017-08-29 13:19:14 +02:00
CraftBukkit/Spigot
5e3ba4ff73 Update to Minecraft 1.12.2
By: md_5 <git@md-5.net>
2017-09-18 20:00:00 +10:00
CraftBukkit/Spigot
65ab757f26 Remove outdated build delay.
By: md_5 <git@md-5.net>
2017-09-14 21:39:04 +10:00
CraftBukkit/Spigot
a939c0b974 SPIGOT-3561: Fix selectors in SuccessCount
By: md_5 <git@md-5.net>
2017-09-09 12:51:18 +10:00
CraftBukkit/Spigot
e594b59798 SPIGOT-3553: Add OfflinePlayer based methods to SkullMeta
By: md_5 <git@md-5.net>
2017-09-06 16:14:21 +10:00
CraftBukkit/Spigot
d68b0a0f44 SPIGOT-3551: Recursively unrestrict advancements
By: md_5 <git@md-5.net>
2017-09-06 16:07:41 +10:00
CraftBukkit/Spigot
587e93b11a Add BukkitTask#isCancelled
By: blablubbabc <lukas@wirsindwir.de>
2017-08-29 13:46:18 +02:00
CraftBukkit/Spigot
c1ec43fdd8 SPIGOT-1107: Shift clicking and delegation for custom inventories
PR #398

By: Jannyboy11 <jannyboy11@gmail.com>
2017-08-18 18:52:09 +10:00
CraftBukkit/Spigot
1ca95d2193 Fix CraftBanner initialisation.
By: Lukas Hennig <lukas@wirsindwir.de>
2017-08-07 03:30:41 +02:00
CraftBukkit/Spigot
89b3d6e8a6 SPIGOT-3491: Add option to bypass permissions in advancements
By: md_5 <git@md-5.net>
2017-08-06 09:07:24 +10:00
CraftBukkit/Spigot
8844b9ade9 Improvements to BlockStates
* Actually capture all the data of TileEntities. This is done by creating a copy of the TileEntity. The methods of BlockState which currently directly access the TileEntity reference will modify the data of that TileEntity-snapshot instead.
* With the call to BlockState.update, the captured TileEntity data gets applied to the current TileEntity in the world.
* Methods which trigger block specific actions will use the current TileEntity from the world.
* CraftBlockState does not hand out the wrapped or the snapshot TileEntity directly. Instead, it provides an applyTo method to copy the data to a given TileEntity and a method to directly get a copy of the TileEntity NBT data represented by the BlockState. CraftMetaBlockState was updated to make use of that.
* Added #getSnapshotInventory() to bukkit which allows modifiying the captured inventory snapshots of containers.
* Tried to clarify which methods only work if the BlockState is placed, which methods require the block in the world to still be of the same type (methods which trigger actions), and that .getInventory() directly modifies the inventory of the block in the world if the BlockState is placed and becomes invalid if the block type is changed.

Backwards compatibility

* If the BlockState acts as InventoryHolder, getInventory() will still return the inventory directly backed by the TileEntity in the world (like before), and not the snapshot inventory. This compromise should reduce the potential of these changes to break existing plugins, or craftbukkit's own use of BlockState.
* The snapshot's inventory can be accessed by a new method getSnapshotInventory()
* In case the BlockState is not placed (if it was retrieved from the MetaBlockState of an item), the getInventory() method will however return the snapshot inventory. So that when the BlockState gets applied back to the item, the inventory changes are properly included.
* With the changes to CraftMetaBlockState it is no longer required to call the update method before passing a modified BlockState to the CraftMetaBlockState. For backwards compatibility the update method will simply return true for a non-placed BlockState, without actually doing anything.

Impact on plugins
* Restoring blocks now actually works as expected, properly restoring the TileEntity data, reglardless if the block changed its type in the meantime.
* Plugins are now consistently required to call the update method in order to apply changes to blocks. Though, regarding the Javadoc they should have been required to do so anyways.
* New feature: Plugins can take and modify inventory snapshots.
* Breaking change: If a plugin gets the BlockState of a block in the world, modifies the inventory returned by .getInventory(), and then tries to use the same BlockState to apply the TileEntity data to an ItemStack block meta, the ItemStack will use the snapshot inventory, disregarding the changes made to the inventory returned by .getInventory(). This is the compromise of .getInventory() returning the inventory directly backed by the TileEntity in the world.

Other fixes related to BlockState:
* TileEntityContainer#getLocation() will run into a NPE if the TileEntity is non-placed (ex. when getting the BlockState from a CraftMetaBlockState).
* Beacon.getEntitiesInRange() would previously throw a NPE if called for a non-placed BlockState. It was changed to now require to be placed and use the current TileEntity in the world. If the TileEntity in the world is no longer a beacon, it will return an empty list.
* EndGateway now supports setting and getting the exit location even for non-placed EndGateways (inside BlockStateMeta) by using / returning a location with world being null.

By: Lukas Hennig <lukas@wirsindwir.de>
2017-08-05 14:37:19 +10:00
CraftBukkit/Spigot
ad7106f650 Add build delay back
By: md_5 <git@md-5.net>
2017-08-04 16:09:17 +10:00