Skip to content

Instantly share code, notes, and snippets.

@aikar
Created August 26, 2018 18:21
Show Gist options
  • Save aikar/5fd4bf46e34ff0a24017480e611c4d67 to your computer and use it in GitHub Desktop.
Save aikar/5fd4bf46e34ff0a24017480e611c4d67 to your computer and use it in GitHub Desktop.
./0023-Entity-Origin-API.patch:25:+ nbttagcompound.set("Paper.Origin", this.createList(origin.getX(), origin.getY(), origin.getZ()));
./0023-Entity-Origin-API.patch:36:+ NBTTagList originTag = nbttagcompound.getList("Paper.Origin", 6);
./0193-Entity-fromMobSpawner.patch:21: nbttagcompound.set("Paper.Origin", this.createList(origin.getX(), origin.getY(), origin.getZ()));
./0193-Entity-fromMobSpawner.patch:25:+ nbttagcompound.setBoolean("Paper.FromMobSpawner", true);
./0193-Entity-fromMobSpawner.patch:35:+ spawnedViaMobSpawner = nbttagcompound.getBoolean("Paper.FromMobSpawner"); // Restore entity's from mob spawner status
./0350-Slime-Pathfinder-Events.patch:15:+ nbttagcompound.setBoolean("Paper.canWander", this.canWander); // Paper
./0350-Slime-Pathfinder-Events.patch:23:+ this.canWander = nbttagcompound.getBoolean("Paper.canWander"); // Paper
./0173-ExperienceOrbs-API-for-Reason-Source-Triggering-play.patch:57:+ if (!nbttagcompound.hasKeyOfType("Paper.ExpData", 10)) { // 10 = compound
./0173-ExperienceOrbs-API-for-Reason-Source-Triggering-play.patch:60:+ NBTTagCompound comp = nbttagcompound.getCompound("Paper.ExpData");
./0173-ExperienceOrbs-API-for-Reason-Source-Triggering-play.patch:87:+ nbttagcompound.set("Paper.ExpData", comp);
./0111-LootTable-API-Replenishable-Lootables-Feature.patch:317:+ if (!base.hasKeyOfType("Paper.LootableData", 10)) { // 10 = compound
./0111-LootTable-API-Replenishable-Lootables-Feature.patch:320:+ NBTTagCompound comp = base.getCompound("Paper.LootableData");
./0111-LootTable-API-Replenishable-Lootables-Feature.patch:366:+ base.set("Paper.LootableData", comp);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment