-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port remapping system to v2 and port to every supported version
- Loading branch information
1 parent
dec3757
commit 6f5bf3b
Showing
52 changed files
with
868 additions
and
336 deletions.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
.../src/main/java/net/legacyfabric/fabric/mixin/networking/versioned/PacketByteBufMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
* Copyright (c) 2020 - 2024 Legacy Fabric | ||
* Copyright (c) 2016 - 2022 FabricMC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package net.legacyfabric.fabric.mixin.networking.versioned; | ||
|
||
import org.jetbrains.annotations.Nullable; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.Shadow; | ||
|
||
import net.minecraft.nbt.NbtCompound; | ||
import net.minecraft.util.PacketByteBuf; | ||
|
||
import net.legacyfabric.fabric.impl.networking.PacketByteBufExtension; | ||
|
||
@Mixin(PacketByteBuf.class) | ||
public abstract class PacketByteBufMixin implements PacketByteBufExtension { | ||
@Shadow | ||
public abstract PacketByteBuf writeNbtCompound(@Nullable NbtCompound nbt); | ||
|
||
@Override | ||
public PacketByteBuf writeCompound(NbtCompound tag) { | ||
return writeNbtCompound(tag); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
.../src/main/java/net/legacyfabric/fabric/mixin/networking/versioned/PacketByteBufMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
* Copyright (c) 2020 - 2024 Legacy Fabric | ||
* Copyright (c) 2016 - 2022 FabricMC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package net.legacyfabric.fabric.mixin.networking.versioned; | ||
|
||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.Shadow; | ||
|
||
import net.minecraft.nbt.NbtCompound; | ||
import net.minecraft.util.PacketByteBuf; | ||
|
||
import net.legacyfabric.fabric.impl.networking.PacketByteBufExtension; | ||
|
||
@Mixin(PacketByteBuf.class) | ||
public abstract class PacketByteBufMixin implements PacketByteBufExtension { | ||
@Shadow | ||
public abstract void writeNbtCompound(NbtCompound par1); | ||
|
||
@Override | ||
public PacketByteBuf writeCompound(NbtCompound tag) { | ||
this.writeNbtCompound(tag); | ||
return (PacketByteBuf) (Object) this; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
.../src/main/java/net/legacyfabric/fabric/mixin/networking/versioned/PacketByteBufMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
* Copyright (c) 2020 - 2024 Legacy Fabric | ||
* Copyright (c) 2016 - 2022 FabricMC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package net.legacyfabric.fabric.mixin.networking.versioned; | ||
|
||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.Shadow; | ||
|
||
import net.minecraft.nbt.NbtCompound; | ||
import net.minecraft.util.PacketByteBuf; | ||
|
||
import net.legacyfabric.fabric.impl.networking.PacketByteBufExtension; | ||
|
||
@Mixin(PacketByteBuf.class) | ||
public abstract class PacketByteBufMixin implements PacketByteBufExtension { | ||
@Shadow | ||
public abstract void writeNbtCompound(NbtCompound par1); | ||
|
||
@Override | ||
public PacketByteBuf writeCompound(NbtCompound tag) { | ||
this.writeNbtCompound(tag); | ||
return (PacketByteBuf) (Object) this; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 0 additions & 71 deletions
71
.../1.12.2/src/main/java/net/legacyfabric/fabric/mixin/registry/sync/PlayerManagerMixin.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
legacy-fabric-registry-sync-api-v1/1.7.10/src/main/resources/registrysync.accesswidener
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
accessWidener v1 named | ||
accessWidener v2 named | ||
|
||
accessible method net/minecraft/block/Block <init> (Lnet/minecraft/block/material/Material;)V | ||
transitive-accessible method net/minecraft/block/Block <init> (Lnet/minecraft/block/material/Material;)V |
71 changes: 0 additions & 71 deletions
71
...1/1.8.9/src/main/java/net/legacyfabric/fabric/mixin/registry/sync/PlayerManagerMixin.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
legacy-fabric-registry-sync-api-v1/1.8/src/main/resources/registrysync.accesswidener
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
accessWidener v1 named | ||
accessWidener v2 named | ||
|
||
accessible method net/minecraft/block/Block <init> (Lnet/minecraft/block/material/Material;)V | ||
transitive-accessible method net/minecraft/block/Block <init> (Lnet/minecraft/block/material/Material;)V |
Oops, something went wrong.