3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-11-19 14:30:16 +01:00

[ci skip] Add comments for conversion direction to classes

Dieser Commit ist enthalten in:
FlorianMichael 2024-04-13 20:58:38 +02:00
Ursprung 4343aa17fc
Commit 287678c12a
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: C2FB87E71C425126
3 geänderte Dateien mit 3 neuen und 0 gelöschten Zeilen

Datei anzeigen

@ -113,6 +113,7 @@ import org.checkerframework.checker.nullness.qual.Nullable;
import static com.viaversion.viaversion.util.MathUtil.clamp; import static com.viaversion.viaversion.util.MathUtil.clamp;
// 1.20.3 nbt -> 1.20.5 data component conversion
public final class BlockItemPacketRewriter1_20_5 extends ItemRewriter<ClientboundPacket1_20_3, ServerboundPacket1_20_5, Protocol1_20_5To1_20_3> { public final class BlockItemPacketRewriter1_20_5 extends ItemRewriter<ClientboundPacket1_20_3, ServerboundPacket1_20_5, Protocol1_20_5To1_20_3> {
public static final String[] MOB_TAGS = {"NoAI", "Silent", "NoGravity", "Glowing", "Invulnerable", "Health", "Age", "Variant", "HuntingCooldown", "BucketVariantTag"}; public static final String[] MOB_TAGS = {"NoAI", "Silent", "NoGravity", "Glowing", "Invulnerable", "Health", "Age", "Variant", "HuntingCooldown", "BucketVariantTag"};

Datei anzeigen

@ -89,6 +89,7 @@ import java.util.HashMap;
import java.util.Map; import java.util.Map;
import java.util.logging.Level; import java.util.logging.Level;
// 1.20.5 data component -> 1.20.5 nbt conversion
public class ComponentRewriter1_20_5 extends ComponentRewriter<ClientboundPacket1_20_3> { public class ComponentRewriter1_20_5 extends ComponentRewriter<ClientboundPacket1_20_3> {
@SuppressWarnings("rawtypes") @SuppressWarnings("rawtypes")

Datei anzeigen

@ -68,6 +68,7 @@ import java.util.Arrays;
import java.util.Map; import java.util.Map;
import org.checkerframework.checker.nullness.qual.Nullable; import org.checkerframework.checker.nullness.qual.Nullable;
// 1.20.5 data component -> 1.20.3 nbt conversion
public final class StructuredDataConverter { public final class StructuredDataConverter {
static final int HIDE_ENCHANTMENTS = 1; static final int HIDE_ENCHANTMENTS = 1;