Skip to content

Commit

Permalink
Update mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
modmuss50 committed Jan 18, 2024
1 parent ada3604 commit e4edcd6
Show file tree
Hide file tree
Showing 14 changed files with 29 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public void onCustomPayload(CustomPayloadS2CPacket packet, CallbackInfo ci) {

if (!handled && payload instanceof RetainedPayload retained && retained.buf().refCnt() > 0) {
// Duplicate the vanilla log message, as we cancel further processing.
LOGGER.warn("Unknown custom packet payload: {}", payload.method_56479().id());
LOGGER.warn("Unknown custom packet payload: {}", payload.getKey().id());

retained.buf().skipBytes(retained.buf().readableBytes());
retained.buf().release();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ default void sendPacket(CustomPayload payload) {
// payload.write(buf);
// TODO 1.20.5
assert false;
sendPacket(payload.method_56479().id(), buf);
sendPacket(payload.getKey().id(), buf);
}

/**
Expand Down Expand Up @@ -111,7 +111,7 @@ default void sendPacket(CustomPayload payload, @Nullable GenericFutureListener<?
// payload.write(buf);
// TODO 1.20.5
assert false;
sendPacket(payload.method_56479().id(), buf, callback);
sendPacket(payload.getKey().id(), buf, callback);
}

/**
Expand Down Expand Up @@ -143,7 +143,7 @@ default void sendPacket(CustomPayload payload, @Nullable PacketCallbacks callbac
// payload.write(buf);
// TODO 1.20.5
assert false;
sendPacket(payload.method_56479().id(), buf, callback);
sendPacket(payload.getKey().id(), buf, callback);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ protected void registerPendingChannels(ChannelInfoHolder holder, NetworkState st

// always supposed to handle async!
public boolean handle(ResolvablePayload resolvable) {
Identifier channelName = resolvable.method_56479().id();
Identifier channelName = resolvable.getKey().id();;
this.logger.debug("Handling inbound packet from channel with name \"{}\"", channelName);

// Handle reserved packets
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public CommonRegisterPayload(PacketByteBuf buf) {
// }

@Override
public class_9154<? extends CustomPayload> method_56479() {
public Type<? extends CustomPayload> getKey() {
// TODO 1.20.5
throw new UnsupportedOperationException();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public CommonVersionPayload(PacketByteBuf buf) {
// }

@Override
public class_9154<? extends CustomPayload> method_56479() {
public Type<? extends CustomPayload> getKey() {
// TODO 1.20.5
throw new UnsupportedOperationException();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

package net.fabricmc.fabric.impl.networking.payload;

import net.minecraft.network.codec.PacketCodec;
import net.minecraft.network.packet.CustomPayload;

import org.jetbrains.annotations.Nullable;
Expand Down Expand Up @@ -50,7 +51,7 @@ public ResolvedPayload resolve(@Nullable PacketType<?> type) {
}

@Override
public class_9154<? extends CustomPayload> method_56479() {
public Type<? extends CustomPayload> getKey() {
// TODO 1.20.5
throw new UnsupportedOperationException();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public ResolvedPayload resolve(@Nullable PacketType<?> type) {
// }

@Override
public class_9154<? extends CustomPayload> method_56479() {
public Type<? extends CustomPayload> getKey() {
// TODO 1.20.5
throw new UnsupportedOperationException();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public PacketByteBuf buffer() {
}

@Override
public class_9154<? extends CustomPayload> method_56479() {
public Type<? extends CustomPayload> getKey() {
// TODO 1.20.5
throw new UnsupportedOperationException();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

import com.mojang.serialization.Codec;

import net.minecraft.class_9129;
import net.minecraft.class_9139;
import net.minecraft.network.codec.PacketCodec;
import net.minecraft.network.codec.RegistryByteBuf;
import net.minecraft.particle.DefaultParticleType;
import net.minecraft.particle.ParticleEffect;
import net.minecraft.particle.ParticleType;
Expand Down Expand Up @@ -84,7 +84,7 @@ public Codec<T> getCodec() {
}

@Override
public class_9139<? super class_9129, T> method_56179() {
public PacketCodec<? super RegistryByteBuf, T> getPacketCodec() {
// TODO 1.20.5 fix me
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,10 @@
package net.fabricmc.fabric.api.recipe.v1.ingredient;

import com.mojang.serialization.Codec;

import net.minecraft.class_9129;
import net.minecraft.class_9139;

import org.jetbrains.annotations.Nullable;

import net.minecraft.network.PacketByteBuf;
import net.minecraft.network.codec.PacketCodec;
import net.minecraft.network.codec.RegistryByteBuf;
import net.minecraft.recipe.Ingredient;
import net.minecraft.util.Identifier;

Expand Down Expand Up @@ -69,5 +66,5 @@ static CustomIngredientSerializer<?> get(Identifier identifier) {
*/
Codec<T> getCodec(boolean allowEmpty);

class_9139<class_9129, T> getPacketCodec();
PacketCodec<RegistryByteBuf, T> getPacketCodec();
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@

import com.mojang.serialization.Codec;

import net.minecraft.class_9129;
import net.minecraft.class_9139;

import net.minecraft.network.PacketByteBuf;
import net.minecraft.network.codec.PacketCodec;
import net.minecraft.network.codec.RegistryByteBuf;
import net.minecraft.recipe.Ingredient;
import net.minecraft.util.Identifier;

Expand Down Expand Up @@ -85,7 +86,7 @@ public Codec<I> getCodec(boolean allowEmpty) {
}

@Override
public class_9139<class_9129, I> getPacketCodec() {
public PacketCodec<RegistryByteBuf, I> getPacketCodec() {
// TODO 1.20.5
throw new UnsupportedOperationException("");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
import com.mojang.serialization.Codec;
import com.mojang.serialization.codecs.RecordCodecBuilder;

import net.minecraft.class_9129;
import net.minecraft.class_9139;
import net.minecraft.item.ItemStack;
import net.minecraft.network.PacketByteBuf;
import net.minecraft.network.codec.PacketCodec;
import net.minecraft.network.codec.RegistryByteBuf;
import net.minecraft.recipe.Ingredient;
import net.minecraft.util.Identifier;

Expand Down Expand Up @@ -98,7 +98,7 @@ public Codec<DifferenceIngredient> getCodec(boolean allowEmpty) {
}

@Override
public class_9139<class_9129, DifferenceIngredient> getPacketCodec() {
public PacketCodec<RegistryByteBuf, DifferenceIngredient> getPacketCodec() {
// TODO 1.20.5
throw new UnsupportedOperationException();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@
import com.mojang.serialization.DataResult;
import com.mojang.serialization.codecs.RecordCodecBuilder;

import net.minecraft.class_9129;
import net.minecraft.class_9139;
import net.minecraft.network.codec.PacketCodec;

import net.minecraft.network.codec.RegistryByteBuf;

import org.jetbrains.annotations.Nullable;

Expand Down Expand Up @@ -148,7 +149,7 @@ public Codec<NbtIngredient> getCodec(boolean allowEmpty) {
}

@Override
public class_9139<class_9129, NbtIngredient> getPacketCodec() {
public PacketCodec<RegistryByteBuf, NbtIngredient> getPacketCodec() {
// TODO 1.20.5
throw new UnsupportedOperationException("");
}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ fabric.loom.multiProjectOptimisation=true

version=0.94.0
minecraft_version=24w03a
yarn_version=+build.1
yarn_version=+build.6
loader_version=0.15.6
installer_version=0.11.1

Expand Down

0 comments on commit e4edcd6

Please sign in to comment.