3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-11-17 21:40:08 +01:00
Paper/src/main/java/net/minecraft/server
Andrew Ardill 82965eb10f Stop converting ItemStack to nms ItemStack by hand
This should fix many issues with enchantments being lost, as the method used takes care of enchantments.
Additionally, use the new nms ItemStack constructor in places where appropriate.

Fixes (at least part of) BUKKIT-7. Need to identify any further places to fix.
2011-12-13 01:46:55 +11:00
..
Block.java removed changes to MobSpawner behavior 2011-12-10 17:07:32 -05:00
BlockBloodStone.java Massive renaming update in nms. If you bypassed Bukkit, you will likely break. 2011-06-27 00:47:03 +02:00
BlockButton.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
BlockCactus.java Update for 1.0.0 2011-11-20 00:01:33 -08:00
BlockDispenser.java Stop converting ItemStack to nms ItemStack by hand 2011-12-13 01:46:55 +11:00
BlockDoor.java Implemented 1.0.1 fixes. This fixes BUKKIT-3, BUKKIT-39, BUKKIT-150 2011-12-01 21:43:54 +00:00
BlockDragonEgg.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
BlockFire.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
BlockFlowing.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
BlockGrass.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
BlockGravel.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
BlockIce.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
BlockLeaves.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
BlockLever.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
BlockMinecartDetector.java Update for 1.0.0 2011-11-20 00:01:33 -08:00
BlockMushroom.java Implemented onStructureGrow event, thanks to md-5. 2011-12-09 16:11:56 +00:00
BlockPiston.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
BlockPistonExtension.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
BlockPortal.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
BlockPressurePlate.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
BlockPumpkin.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
BlockRedstoneTorch.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
BlockRedstoneWire.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
BlockSand.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
BlockSapling.java Implemented onStructureGrow event, thanks to md-5. 2011-12-09 16:11:56 +00:00
BlockSign.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
BlockSnow.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
BlockSoil.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
BlockStairs.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
BlockStationary.java Update for 1.0.0 2011-11-20 00:01:33 -08:00
BlockTrapdoor.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
Chunk.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
ChunkProviderServer.java Update for 1.0.0 2011-11-20 00:01:33 -08:00
ConsoleLogManager.java Added command line logging configuration which enables log file: 2011-07-10 18:28:57 +01:00
Container.java Another fix for enchantments when moving around inventory. (Still glitches visually at times) 2011-12-05 04:02:59 -05:00
ContainerPlayer.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
ContainerWorkbench.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
CraftingManager.java Update for 1.0.0 2011-11-20 00:01:33 -08:00
Enchantment.java Implemented Enchantment API 2011-11-27 01:37:00 +00:00
EnchantmentManager.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
EnchantmentModifierDamage.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
EnchantmentModifierProtection.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
Entity.java Clean-up some events to maintain general style 2011-12-05 19:23:40 +11:00
EntityArrow.java Clean-up some events to maintain general style 2011-12-05 19:23:40 +11:00
EntityBlaze.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
EntityBoat.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
EntityChicken.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
EntityCow.java Stop converting ItemStack to nms ItemStack by hand 2011-12-13 01:46:55 +11:00
EntityCreature.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
EntityCreeper.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
EntityDamageSourceIndirect.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
EntityEgg.java Clean-up some events to maintain general style 2011-12-05 19:23:40 +11:00
EntityEnderDragon.java Make EntityEnderDragon call the ExplosionEventi 2011-12-08 10:30:20 +11:00
EntityEnderman.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
EntityEnderPearl.java Fixed issues with Ender Pearls. This fixes BUKKIT-248 and BUKKIT-264. 2011-12-11 02:13:48 -05:00
EntityExperienceOrb.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
EntityFallingBlock.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
EntityFireball.java Clean-up some events to maintain general style 2011-12-05 19:23:40 +11:00
EntityFishingHook.java Clean-up some events to maintain general style 2011-12-05 19:23:40 +11:00
EntityGhast.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
EntityHuman.java Clean-up some events to maintain general style 2011-12-05 19:23:40 +11:00
EntityItem.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
EntityLiving.java Implemented getKiller in LivingEntity 2011-12-11 16:05:27 +00:00
EntityMagmaCube.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
EntityMinecart.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
EntityMonster.java Clean-up some events to maintain general style 2011-12-05 19:23:40 +11:00
EntityPainting.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
EntityPig.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
EntityPigZombie.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
EntityPlayer.java Fixed issues with Ender Pearls. This fixes BUKKIT-248 and BUKKIT-264. 2011-12-11 02:13:48 -05:00
EntityPotion.java Fix Craft Entity constructors and toStrings. 2011-11-29 21:22:35 +11:00
EntityProjectile.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
EntitySheep.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
EntitySkeleton.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
EntitySlime.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
EntitySmallFireball.java Clean-up some events to maintain general style 2011-12-05 19:23:40 +11:00
EntitySnowball.java Clean-up some events to maintain general style 2011-12-05 19:23:40 +11:00
EntitySnowman.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
EntitySpider.java Fixed spiders not respecting the EntityDeathEvent. This fixes BUKKIT-275. 2011-12-10 15:59:07 -05:00
EntitySquid.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
EntityTNTPrimed.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
EntityTracker.java Performance update to remove several very high counts of temp object creation 2011-12-06 08:52:45 -05:00
EntityTrackerEntry.java Add more information to 'Fetching addPacket' so we might be able to find the reason why it happens. Gives info for BUKKIT-32 2011-12-01 21:02:59 +01:00
EntityWeatherLighting.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
EntityWolf.java Clean-up some events to maintain general style 2011-12-05 19:23:40 +11:00
EntityZombie.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
Explosion.java Teach EnderDragon how to throw EntityExplosionEvents when it breaks blocks 2011-12-08 00:31:21 +11:00
FoodMetaData.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
IDataManager.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
IInventory.java Update for 1.0.0 2011-11-20 00:01:33 -08:00
InventoryCrafting.java Update for 1.0.0 2011-11-20 00:01:33 -08:00
InventoryCraftResult.java Update for 1.0.0 2011-11-20 00:01:33 -08:00
InventoryLargeChest.java Update for 1.0.0 2011-11-20 00:01:33 -08:00
ItemBed.java Update for 1.0.0 2011-11-20 00:01:33 -08:00
ItemBlock.java Fix missing data-value when placing a stair-block (somehow gets set after the fact) - Fixes BUKKIT-40 2011-12-01 21:03:22 +01:00
ItemBoat.java Update for 1.0.0 2011-11-20 00:01:33 -08:00
ItemBucket.java Stop converting ItemStack to nms ItemStack by hand 2011-12-13 01:46:55 +11:00
ItemDoor.java Update for 1.0.0 2011-11-20 00:01:33 -08:00
ItemDye.java Implemented onStructureGrow event, thanks to md-5. 2011-12-09 16:11:56 +00:00
ItemFishingRod.java Update for 1.0.0 2011-11-20 00:01:33 -08:00
ItemFlintAndSteel.java Update for 1.0.0 2011-11-20 00:01:33 -08:00
ItemFood.java Update for 1.0.0 2011-11-20 00:01:33 -08:00
ItemHoe.java Update for 1.0.0 2011-11-20 00:01:33 -08:00
ItemInWorldManager.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
ItemMinecart.java Update for 1.0.0 2011-11-20 00:01:33 -08:00
ItemPainting.java Update for 1.0.0 2011-11-20 00:01:33 -08:00
ItemRedstone.java Update for 1.0.0 2011-11-20 00:01:33 -08:00
ItemReed.java Update for 1.0.0 2011-11-20 00:01:33 -08:00
ItemSeeds.java Update for 1.0.0 2011-11-20 00:01:33 -08:00
ItemSign.java Update for 1.0.0 2011-11-20 00:01:33 -08:00
ItemStack.java Teach nms ItemStack constructor how to take enchantments 2011-12-13 01:45:58 +11:00
ItemWaterLily.java Fire BlockPlace event when placing a lilypad, Thanks DiddiZ; Fixes BUKKIT-162 2011-12-01 21:43:46 +01:00
ItemWorldMap.java Fixed (Bukkit multiworld) maps as described in BUKKIT-142. 2011-12-10 15:15:26 -05:00
MinecraftServer.java Implemented CraftServer.getAllowEnd(). Thanks codename-B! 2011-12-09 18:55:36 +01:00
NetLoginHandler.java Implemented 1.0.1 fixes. This fixes BUKKIT-3, BUKKIT-39, BUKKIT-150 2011-12-01 21:43:54 +00:00
NetServerHandler.java Added missing CraftBukkit comments in previous commit. 2011-12-12 03:16:50 -05:00
NetworkManager.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
Packet3Chat.java Massive renaming update in nms. If you bypassed Bukkit, you will likely break. 2011-06-27 00:47:03 +02:00
Packet51MapChunk.java Update for 1.0.0 2011-11-20 00:01:33 -08:00
Packet.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
PlayerInstance.java Update for 1.0.0 2011-11-20 00:01:33 -08:00
PlayerInventory.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
PlayerManager.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
PortalTravelAgent.java I've either fixed going to The End, or made it worse. I'm sure we'll find out soon! 2011-11-24 20:00:55 +00:00
PropertyManager.java Update for 1.0.0 2011-11-20 00:01:33 -08:00
SecondaryWorldServer.java Update for Minecraft 1.8 2011-09-15 01:23:52 +01:00
ServerConfigurationManager.java Fixed NPE in ServerConfigurationManager when sometimes attempting to flee the End 2011-12-09 17:09:21 +00:00
Slot.java Update for 1.0.0 2011-11-20 00:01:33 -08:00
SpawnerCreature.java Fix for entity spawning and some code cleanup 2011-12-06 19:21:10 -05:00
ThreadCommandReader.java Added new --noconsole command argument, thanks to mkurzeja for the idea 2011-11-05 20:15:19 +00:00
ThreadLoginVerifier.java Update for Minecraft 1.8 2011-09-15 01:23:52 +01:00
TileEntityChest.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
TileEntityDispenser.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
TileEntityFurnace.java Stop converting ItemStack to nms ItemStack by hand 2011-12-13 01:46:55 +11:00
TileEntityMobSpawner.java Fixed corrupt mob spawners crashing on load - this fixes BUKKIT-69, BUKKIT-144 2011-12-11 15:59:55 +00:00
TileEntityPiston.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
TileEntitySign.java Update for 1.0.0 2011-11-20 00:01:33 -08:00
World.java Performance update to remove several very high counts of temp object creation 2011-12-06 08:52:45 -05:00
WorldData.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
WorldGenBigTree.java Implemented onStructureGrow event, thanks to md-5. 2011-12-09 16:11:56 +00:00
WorldGenerator.java Update for 1.0.0 2011-11-20 00:01:33 -08:00
WorldGenForest.java Implemented onStructureGrow event, thanks to md-5. 2011-12-09 16:11:56 +00:00
WorldGenHugeMushroom.java Implemented onStructureGrow event, thanks to md-5. 2011-12-09 16:11:56 +00:00
WorldGenTaiga1.java Update for 1.0.0 2011-11-20 00:01:33 -08:00
WorldGenTaiga2.java Implemented onStructureGrow event, thanks to md-5. 2011-12-09 16:11:56 +00:00
WorldGenTrees.java Implemented onStructureGrow event, thanks to md-5. 2011-12-09 16:11:56 +00:00
WorldManager.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
WorldMap.java Updated to use mc-dev rename revision 1 2011-11-30 21:46:19 +00:00
WorldMapHumanTracker.java Added API for manipulating map items. Thanks SpaceManiac, codename_B, sk89q and dested! 2011-08-12 23:06:02 -04:00
WorldNBTStorage.java Implemented server.getOfflinePlayers 2011-12-04 17:57:00 +00:00
WorldServer.java Implemented 1.0.1 fixes. This fixes BUKKIT-3, BUKKIT-39, BUKKIT-150 2011-12-01 21:43:54 +00:00