Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
187 commits
Select commit Hold shift + click to select a range
65dcb53
hacked build changes, api applies cleanly
MiniDigger Jun 11, 2021
211b20f
Did anyone say gradle? and paperweight? potentially even mojmap?!
MiniDigger Jun 11, 2021
604ebc2
Update paperweight & build config for Spigot changes
DenWav Jun 11, 2021
fc52b39
Move patches
DenWav Jun 11, 2021
c1aacf6
Initial Spigot remap patches
DenWav Jun 11, 2021
73bcb74
Inital remap of patches
MiniDigger Jun 11, 2021
4d22581
Move patches around
MiniDigger Jun 11, 2021
1eedd59
Remap POM changes patch
Proximyst Jun 11, 2021
648fec3
Rename POM changes to build system changes
Proximyst Jun 11, 2021
35487db
Apply a few more patches
Proximyst Jun 11, 2021
a207d14
Rename all patches to correct numbering scheme
Proximyst Jun 11, 2021
132382d
More remapped patches
Proximyst Jun 11, 2021
3d21ab7
ci: remove java 8 build
Proximyst Jun 11, 2021
3f10bf1
Update Timings patch (#5796)
Machine-Maker Jun 11, 2021
82eb9ff
fix: up the max memory for gradle
Proximyst Jun 11, 2021
87ee3b4
fix: add pom changes to gradle
Proximyst Jun 11, 2021
d8d7c8c
fix: remove empty java file
Proximyst Jun 11, 2021
9c2a18a
fix: remove #isStopping check
Proximyst Jun 11, 2021
088e980
fix: closer to compilable
Proximyst Jun 11, 2021
a79616b
fix: the server compiles
Proximyst Jun 11, 2021
eccd156
fix: map parent method where CB does not
Proximyst Jun 11, 2021
a588190
feat: new maven group: io.papermc.paper
Proximyst Jun 11, 2021
7ea73d4
fix: Update paperweight mcdev and fix CraftBukkit patch
DenWav Jun 11, 2021
a22a0e5
few fixes to make it actually run
MiniDigger Jun 12, 2021
9188180
Add Paper version back to manifest, add `runShadow`, `runReobf`, and …
jpenilla Jun 12, 2021
a9f38a8
fix adventure patch
Machine-Maker Jun 11, 2021
1f8e76b
rebase
Machine-Maker Jun 11, 2021
3a3831d
more patches
Machine-Maker Jun 11, 2021
650edb9
more patches
Machine-Maker Jun 12, 2021
933a189
more patches (#5799)
Machine-Maker Jun 12, 2021
c56800c
Add ASM dep to API and fix issues from title packet changes with bung…
jpenilla Jun 12, 2021
d43c31d
patches
jpenilla Jun 12, 2021
2dc0a31
fix PlayerUseUnknownEntityEvent patch (#5800)
Machine-Maker Jun 12, 2021
2920f9b
some patches
Spottedleaf Jun 12, 2021
8599f95
even more progress
Spottedleaf Jun 12, 2021
42458fb
even even more progress
Spottedleaf Jun 12, 2021
9da1601
even even even even even even even more work
Spottedleaf Jun 12, 2021
b1517fe
even even even even even even even even even more changes
Spottedleaf Jun 12, 2021
864ef24
fix profile cache mappings
MiniDigger Jun 12, 2021
1753b33
even even even even even even even even even even even
Spottedleaf Jun 12, 2021
d9210c3
even even even even even even even even even even even even even even…
Spottedleaf Jun 12, 2021
4e99c4e
add mcdev imports file
MiniDigger Jun 12, 2021
0ec8b90
More work
kennytv Jun 12, 2021
3c1cd3b
More more work
kennytv Jun 12, 2021
88bc74e
Fix patch, fix .gitattributes file name
kennytv Jun 12, 2021
8125b3f
More more more work
kennytv Jun 12, 2021
79da8f0
even more wooooooooooooooooooooooooork uwu
aurorasmiles Jun 12, 2021
2397b86
more patches (#5807)
Machine-Maker Jun 12, 2021
116a601
Fix this stupid bullshit v2
MiniDigger Jun 12, 2021
d7e184d
delete unneeded old patches
MiniDigger Jun 12, 2021
716a313
more patches (#5808)
Machine-Maker Jun 12, 2021
a968aef
more patches
Machine-Maker Jun 12, 2021
0c2d154
gradlew.bat crlf fix (#5810)
mechoriet Jun 12, 2021
2ba2c29
more patches (#5811)
Machine-Maker Jun 12, 2021
fa637ed
Cleanup project build config
DenWav Jun 13, 2021
672c536
Write API version to pom.properties for Versioning to read
jpenilla Jun 13, 2021
cc19211
wowe
Spottedleaf Jun 13, 2021
75b99eb
Add `runWorkDir` property for setting a custom run task working direc…
jpenilla Jun 13, 2021
24e9620
Use `mergeServiceFiles()` instead of AppendingTransformer
jpenilla Jun 13, 2021
152994d
Bump tiny-remapper to 0.4.1
DenWav Jun 13, 2021
06f41a4
Use `forUseAtConfigurationTime()` for run directory property
jpenilla Jun 13, 2021
2a3f1fa
Resolve run working directory from rootProject
jpenilla Jun 13, 2021
ca621e6
even even even even more work
Spottedleaf Jun 13, 2021
cef692b
wor
Spottedleaf Jun 13, 2021
5e9c53b
Merge remote-tracking branch 'leaf/dev/1.17' into dev/1.17
jpenilla Jun 13, 2021
52f2895
patches
jpenilla Jun 13, 2021
0fa2a94
Updated Upstream (Bukkit/CraftBukkit/Spigot)
jpenilla Jun 13, 2021
79f1d1a
patches
jpenilla Jun 13, 2021
41a5f14
patches and patches
jpenilla Jun 13, 2021
b8b3c40
patch
jpenilla Jun 13, 2021
76a75fc
fix compile
jpenilla Jun 13, 2021
d421401
Work
kennytv Jun 13, 2021
19da14e
More work
kennytv Jun 13, 2021
5d9882a
More more work
kennytv Jun 13, 2021
2bf9070
Move this back
kennytv Jun 13, 2021
fd645b4
Fix compile
kennytv Jun 13, 2021
b804730
more work
aurorasmiles Jun 13, 2021
0ea382b
fix kneny dumb
aurorasmiles Jun 13, 2021
8af12b1
even more work
aurorasmiles Jun 13, 2021
7f15d78
Fix recursive connection call causing StackOverflowException
Prof-Bloodstone Jun 13, 2021
123a41d
adjust material set tag sizes
MiniDigger Jun 13, 2021
27a8d6d
more patches
Machine-Maker Jun 13, 2021
f55b6e0
MOAR PATCHES
Machine-Maker Jun 13, 2021
ab709d8
update github action to the new setup
MiniDigger Jun 13, 2021
5cdbd00
update github action to the new setup
MiniDigger Jun 13, 2021
69e6160
separate out the CI tasks
MiniDigger Jun 13, 2021
2372198
use local class for movecontrol stuff to prevent reobf mapping issue
MiniDigger Jun 13, 2021
2d176a6
eeeeww, maven
MiniDigger Jun 13, 2021
b75a22c
not even checkstyle can help us now
MiniDigger Jun 13, 2021
9085da6
fix tests
MiniDigger Jun 14, 2021
2a46c72
EVEN MOOOOOAAAAAAARRRRRRR patches :) (#5820)
Machine-Maker Jun 14, 2021
6c30949
Use correct jetbrains annotations
jpenilla Jun 14, 2021
3e552cc
work work (#5821)
kickash32 Jun 14, 2021
f67dc7a
patches
jpenilla Jun 14, 2021
3d7b049
reorder patches after merge
jpenilla Jun 14, 2021
5e62aca
small fixes
jpenilla Jun 14, 2021
961f297
fix exception (#5822)
kickash32 Jun 14, 2021
d001eef
2 patch
jpenilla Jun 14, 2021
3c02c90
progress
jpenilla Jun 14, 2021
9c95d04
Re-add xp orb merging patches (#5823)
Machine-Maker Jun 14, 2021
dcbb163
ReAdded PreCreatureSpawnEvent from removed (#5814)
mechoriet Jun 14, 2021
ba374d2
reorder
jpenilla Jun 14, 2021
45c6df9
patches
jpenilla Jun 14, 2021
956fcad
Fix mojangapi build
jpenilla Jun 14, 2021
4b2f4cb
Add back incremental chunk saving patch
Machine-Maker Jun 14, 2021
405ab63
add entity debug info patch back
Machine-Maker Jun 14, 2021
7fe98bd
more patches (#5827)
Machine-Maker Jun 14, 2021
f7bc641
Add missing getLevel implementation to Hopper Minecart, add mapping t…
jpenilla Jun 14, 2021
eddf0f4
decomp fixes
jpenilla Jun 14, 2021
ba3ce75
more work uwu
aurorasmiles Jun 14, 2021
d2cb88d
Merge branch 'dev/1.17' of github.com:PaperMC/Paper into dev/1.17
aurorasmiles Jun 14, 2021
b7cdb5d
fix issue in hopper patch
jpenilla Jun 14, 2021
8ca5a64
more work work work
aurorasmiles Jun 14, 2021
42091ba
Merge branch 'dev/1.17' of github.com:PaperMC/Paper into dev/1.17
aurorasmiles Jun 14, 2021
cfb1766
even MOAR progress
JRoy Jun 14, 2021
3721b14
need to look at this later, fails rn
JRoy Jun 14, 2021
21effd6
even moar workkkkk
aurorasmiles Jun 14, 2021
b87c54f
fix compile issues
aurorasmiles Jun 14, 2021
53081c6
even more compile fixes
aurorasmiles Jun 14, 2021
18a839d
fix no grav bee patch for world height changes
Machine-Maker Jun 14, 2021
8cf470d
more patches
Machine-Maker Jun 14, 2021
ae5af5a
resolve paperweight from paper repo
MiniDigger Jun 14, 2021
f72886c
run CI with --stacktrace
MiniDigger Jun 14, 2021
5dce4d9
more patches
Machine-Maker Jun 14, 2021
f777faa
more patches & fixes to existing patches
Machine-Maker Jun 14, 2021
23a9df7
add access transforming capabilities
MiniDigger Jun 14, 2021
b2a6342
continue to load paperclip from jfrog for now
MiniDigger Jun 14, 2021
09ead8b
more patches
Machine-Maker Jun 14, 2021
0c732e2
Put pom in correct location for Paperclip install to maven local feature
jpenilla Jun 15, 2021
24b7da6
Re-add Chunk Priority/Urgency System (#5829)
mechoriet Jun 15, 2021
38e4dc3
Organize removed patches (#5836)
kickash32 Jun 15, 2021
d3424f4
tons of patches (#5835)
Machine-Maker Jun 15, 2021
cf88510
Fix AT format issue
DenWav Jun 15, 2021
2ac6b12
Update editorconfig
jpenilla Jun 15, 2021
7271649
patches
jpenilla Jun 15, 2021
7929fda
update mappings files
jpenilla Jun 15, 2021
f6636fc
Updated Upstream (Bukkit/CraftBukkit)
jpenilla Jun 15, 2021
f5f80a4
fixes
jpenilla Jun 15, 2021
5b49459
Gradle & Paperclip updates
DenWav Jun 15, 2021
da99f86
Fix mappings patches for Hopper getLevel issue
DenWav Jun 15, 2021
5a86fba
final patches from remapped and unmapped
jpenilla Jun 15, 2021
a5251b4
update Fix incorrect status dataconverter for pre 1.13 chunks
jpenilla Jun 15, 2021
8755b39
Add back stream patch (#5838)
Machine-Maker Jun 15, 2021
b26ba5b
port some patches (#5837)
kickash32 Jun 15, 2021
f267238
reorder patches after merge
jpenilla Jun 15, 2021
bbb8816
Update to paperweight 1.0.0, with automatic library imports
DenWav Jun 15, 2021
15741a0
Update paperweight to 1.0.1
DenWav Jun 15, 2021
34269f8
Run Gradle tasks in parallel by default
DenWav Jun 15, 2021
c8ecb66
Remove now unnecessary scripts and update upstreamMerge.sh
DenWav Jun 15, 2021
a3de494
Remove Paperclip submodule
DenWav Jun 15, 2021
c9f654d
Updated Upstream (CraftBukkit)
jpenilla Jun 15, 2021
57fce3d
revert accidental changes
jpenilla Jun 15, 2021
ebbfe27
update Optimize Pathfinder - Remove Streams / Optimized collections
jpenilla Jun 15, 2021
a0056c3
Revert "Updated Upstream (CraftBukkit)"
jpenilla Jun 15, 2021
3846367
add back optimizing hopper searches (#5839)
Machine-Maker Jun 15, 2021
8986007
Clean cache on upstream update
jpenilla Jun 15, 2021
8291fff
Updated Upstream (CraftBukkit/Spigot)
jpenilla Jun 15, 2021
df2247b
Remove sync loading of spawn chunks
jpenilla Jun 15, 2021
e3fea25
BlockPos.withinManhattan decomp fix
jpenilla Jun 15, 2021
68caddb
Port anti x-ray patch
kennytv Jun 15, 2021
7267c01
Fix ChunkPacketBlockControllerAntiXray initialize
kennytv Jun 15, 2021
eab6d9f
Changes to xray patch
kennytv Jun 15, 2021
7480cf0
Port Stop-copy-on-write-operations-for-updating-light-dat
kennytv Jun 15, 2021
9abef9c
Disable Gradle file system watching by default
DenWav Jun 15, 2021
4cbb187
Add note on removed patch
kennytv Jun 15, 2021
90546c7
start adding in ATs
MiniDigger Jun 15, 2021
3fb6b93
AT bullshit
MiniDigger Jun 15, 2021
08fe6d3
Fix a few cases of the vanilla mob goals
MiniDigger Jun 15, 2021
f79ab29
one missed AT
MiniDigger Jun 15, 2021
ba2b40c
mojang mapped vanilla goals
MiniDigger Jun 15, 2021
9501e76
added remaining hunks from chat/title packets (#5844)
Machine-Maker Jun 15, 2021
d50b33f
fix StopAttackingIfTargetInvalid behavior
jpenilla Jun 15, 2021
4d40e87
Update sync chunk load debug patch
jpenilla Jun 16, 2021
ea0ec8c
Updated Upstream (Bukkit/CraftBukkit) & more patches
Machine-Maker Jun 16, 2021
6f064f9
add more patches back
Machine-Maker Jun 16, 2021
380953b
Update Paperweight to 1.0.2
jpenilla Jun 16, 2021
ad2a112
Update runDev task for Gradle 7.1 deprecations
jpenilla Jun 16, 2021
98994a0
Bump paperweight to 1.0.3
DenWav Jun 16, 2021
852ce73
more patches added back
Machine-Maker Jun 16, 2021
4c074f2
Bump paperweight to 1.0.4
DenWav Jun 16, 2021
9cfc0d5
Revert "Re-add Chunk Priority/Urgency System (#5829)"
jpenilla Jun 16, 2021
d8c3fb7
Temporarily revert incremental chunk saving patch
jpenilla Jun 16, 2021
86953b2
Modify entity origin API to store world/pos seperatly
electronicboy Jun 16, 2021
3740db0
Fix comment
jpenilla Jun 16, 2021
4b17540
Update Asynchronous chunk IO and loading for variable world height li…
Spottedleaf Jun 16, 2021
9e1255c
Port chunk priority urgency patch
kennytv Jun 16, 2021
2b8d06a
Definitely readd this patch for the first time
kennytv Jun 16, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 7 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
[*.java]
[*]
charset=utf-8
end_of_line=lf
insert_final_newline=true
indent_style=space
indent_size=4

[*.tiny]
indent_style=tab

[*.bat]
end_of_line=crlf
7 changes: 7 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
* text=auto

*.sh text eol=lf
gradlew text eol=lf
*.bat text eol=crlf

*.jar binary
17 changes: 9 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
java: [16, 8]
java: [16]
fail-fast: true
steps:
- uses: actions/checkout@v2
Expand All @@ -22,18 +22,19 @@ jobs:
with:
java-version: ${{ matrix.java }}
distribution: 'adopt'
- name: Cache maven
- name: Cache gradle
uses: actions/cache@v2
with:
path: |
~/.m2/repository/
work/Minecraft
key: ${{ runner.os }}-paper-2-${{ hashFiles('**/pom.xml') }}
~/.gradle/caches
~/.gradle/jdks
~/.gradle/native
~/.gradle/wrapper
key: ${{ runner.os }}-paper-2-${{ hashFiles('**/*.gradle*', 'gradle/**', 'gradle.properties') }}
restore-keys: ${{ runner.os }}-paper-2
- name: Patch and build
run: |
git config --global user.email "no-reply@github.com"
git config --global user.name "Github Actions"
./paper build
- name: Build javadocs
run: mvn -pl Paper-API,Paper-MojangAPI -am javadoc:javadoc
./gradlew applyPatches --stacktrace
./gradlew build --stacktrace
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
.gradle/
build/

# Eclipse stuff
.classpath
.project
Expand Down Expand Up @@ -63,3 +66,5 @@ Paperclip.jar
paperclip.jar
paperclip-*.jar
paperclip.properties

!gradle/wrapper/gradle-wrapper.jar
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,3 @@
[submodule "work/Spigot"]
path = work/Spigot
url = https://hub.spigotmc.org/stash/scm/spigot/spigot.git
[submodule "work/Paperclip"]
path = work/Paperclip
url = https://github.com/PaperMC/Paperclip.git
32 changes: 32 additions & 0 deletions Paper-MojangAPI/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
plugins {
`java-library`
`maven-publish`
}

java {
withSourcesJar()
withJavadocJar()
}

repositories {
mavenCentral()
maven("https://libraries.minecraft.net")
}

dependencies {
implementation(project(":Paper-API"))
api("com.mojang:brigadier:1.0.18")

compileOnly("it.unimi.dsi:fastutil:8.2.2")
compileOnly("org.jetbrains:annotations:18.0.0")

testImplementation("junit:junit:4.13.1")
testImplementation("org.hamcrest:hamcrest-library:1.3")
testImplementation("org.ow2.asm:asm-tree:7.3.1")
}

configure<PublishingExtension> {
publications.create<MavenPublication>("maven") {
from(components["java"])
}
}
14 changes: 0 additions & 14 deletions UPDATE_NOTES.md

This file was deleted.

26 changes: 26 additions & 0 deletions build-data/additional-spigot-member-mappings.csrg
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# CraftBukkit maps all of (mojmap names):
# Merchant.getLevel()
# Entity.getCommandSenderWorld()
# to getWorld(), which confuses our ability to map this method properly. This patch disambiguates it
net/minecraft/world/item/trading/IMerchant fD ()Lnet/minecraft/world/level/World; getLevel
net/minecraft/world/entity/npc/EntityVillagerAbstract fD ()Lnet/minecraft/world/level/World; getLevel

# CraftBukkit mappings sometimes have mappings for child classes and not parent classes
# We handle this fine for deobf but this breaks reobf. These Patches fix those cases

# BossBattle -> BossBattleServer
# net/minecraft/world/BossBattle a (F)V setProgress
# net/minecraft/world/BossBattle c (Z)Lnet/minecraft/world/BossBattle; setCreateFog
# net/minecraft/world/BossBattle a (Z)Lnet/minecraft/world/BossBattle; setDarkenSky
# net/minecraft/world/BossBattle b (Z)Lnet/minecraft/world/BossBattle; setPlayMusic

# IChunkProvider -> ChunkProviderServer
# net/minecraft/world/level/chunk/IChunkProvider b (II)Z isLoaded

# BehaviorWorkComposter -> BehaviorWork
net/minecraft/world/entity/ai/behavior/BehaviorWorkComposter a (Lnet/minecraft/server/level/WorldServer;Lnet/minecraft/world/entity/npc/EntityVillager;)V doWork

# We add getLevel to the Hopper interface (implemented by Hoppers and Hopper Minecarts), but this also exists on BlockEntity,
# which Hoppers also extend. We need to map the method we add to the Hopper interface to the same name used for the method on BlockEntity
# to avoid remap causing issues
net/minecraft/world/level/block/entity/IHopper getWorld ()Lnet/minecraft/world/level/World; getLevel
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
--- a/net/minecraft/world/entity/ai/behavior/BehaviorWorkComposter.patch
+++ b/net/minecraft/world/entity/ai/behavior/BehaviorWorkComposter.patch
@@ -1,14 +1,5 @@
--- a/net/minecraft/world/entity/ai/behavior/BehaviorWorkComposter.java
+++ b/net/minecraft/world/entity/ai/behavior/BehaviorWorkComposter.java
-@@ -23,7 +23,7 @@
- public BehaviorWorkComposter() {}
-
- @Override
-- protected void a(WorldServer worldserver, EntityVillager entityvillager) {
-+ protected void doWork(WorldServer worldserver, EntityVillager entityvillager) { // PAIL
- Optional<GlobalPos> optional = entityvillager.getBehaviorController().getMemory(MemoryModuleType.JOB_SITE);
-
- if (optional.isPresent()) {
@@ -42,7 +42,7 @@
BlockPosition blockposition = globalpos.getBlockPosition();

7 changes: 7 additions & 0 deletions build-data/library-imports.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# You can use this file to import files from minecraft libraries into the project
# format:
# <artifactId> <fileName>
# both fully qualified and a file based syntax are accepted for <fileName>:
# authlib com/mojang/authlib/yggdrasil/YggdrasilGameProfileRepository.java
# datafixerupper com.mojang.datafixers.DataFixerBuilder
# datafixerupper com/mojang/datafixers/util/Either.java
45 changes: 45 additions & 0 deletions build-data/mappings-patch.tiny
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
tiny 2 0 spigot mojang+yarn

# Originally DistanceManager, which also implements DistanceManager, so clashes since the implemented class
# is imported and not fully qualified. Easiest fix is to just change the name
c net/minecraft/server/level/PlayerChunkMap$a net/minecraft/server/level/ChunkMap$ChunkDistanceManager

# CraftBukkit adds the getServer() method, clashes with a Mojang method
c net/minecraft/world/level/World net/minecraft/world/level/Level
m ()Lorg/bukkit/craftbukkit/CraftServer; getServer getCraftServer

# CraftBukkit adds the server field, clashes with a Mojang field
c net/minecraft/server/network/PlayerConnection net/minecraft/server/network/ServerGamePacketListenerImpl
m ()Lorg/bukkit/craftbukkit/entity/CraftPlayer; getPlayer getCraftPlayer

# CraftBukkit adds the getType() method, clashes with a Mojang method
c net/minecraft/world/entity/EntityAreaEffectCloud net/minecraft/world/entity/AreaEffectCloud
m ()Ljava/lang/String; getType getPotionType

# CraftBukkit adds the getType() method, clashes with a Mojang method
c net/minecraft/world/entity/projectile/EntityTippedArrow net/minecraft/world/entity/projectile/Arrow
m ()Ljava/lang/String; getType getPotionType

# CraftBukkit adds a new `a` method which allows passing the Entity parameter
# It uses `a` to match the original method (with just 1 param), so this patch makes them match
c net/minecraft/server/level/WorldServer net/minecraft/server/level/ServerLevel
m (Lnet/minecraft/server/level/WorldServer;Lnet/minecraft/world/entity/Entity;)V a makeObsidianPlatform

# missed mapping?
c net/minecraft/world/level/block/MultifaceBlock net/minecraft/world/level/block/MultifaceBlock
m (Lnet/minecraft/world/level/block/state/IBlockData;Lnet/minecraft/world/level/IBlockAccess;Lnet/minecraft/core/BlockPosition;Lnet/minecraft/core/EnumDirection;)Lnet/minecraft/world/level/block/state/IBlockData; c getStateForPlacement

# another missed one
c net/minecraft/server/players/UserCache net/minecraft/server/players/GameProfileCache
m (Ljava/lang/String;)Lcom/mojang/authlib/GameProfile; getProfile get
p 0 name

# change dimension in ServerPlayer
c net/minecraft/server/level/EntityPlayer net/minecraft/server/level/ServerPlayer
m (Lnet/minecraft/server/level/WorldServer;Lorg/bukkit/event/player/PlayerTeleportEvent$TeleportCause;)Lnet/minecraft/world/entity/Entity; b changeDimension

# We add the getLevel method back to Hopper since mojang removed it - we need the method for hooper optimization
# We add the method with this name to match the mojmap method of the same name in BlockEntity
# Since we add the method we need to add the mapping for it so reobf works as expected
c net/minecraft/world/level/block/entity/IHopper net/minecraft/world/level/block/entity/Hopper
m ()Lnet/minecraft/world/level/World; getWorld getLevel
4 changes: 4 additions & 0 deletions build-data/mcdev-imports.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# You can use this file to import files from vanilla into the project
# both fully qualified and a file based syntax are accepted here:
# net.minecraft.world.level.entity.LevelEntityGetterAdapter
# net/minecraft/world/level/entity/LevelEntityGetter.java
Loading