3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2025-01-11 23:51:00 +01:00

Remove unused methods

Dieser Commit ist enthalten in:
FlorianMichael 2024-12-14 23:26:09 +01:00
Ursprung 2f750317e2
Commit e125aee277

Datei anzeigen

@ -1851,21 +1851,11 @@ public class ComponentRewriter1_20_5<C extends ClientboundPacketType> extends Co
converters.put(key, new ConverterPair<>(null, null));
}
protected <T> void register(final StructuredDataKey<T> key, final SimpleDataConverter<T> dataConverter) {
final DataConverter<T> converter = ($, value) -> dataConverter.convert(value);
converters.put(key, new ConverterPair<>(converter, null));
}
protected <T> void register(final StructuredDataKey<T> key, final SimpleDataConverter<T> dataConverter, final SimpleTagConverter<T> tagConverter) {
final DataConverter<T> converter = ($, value) -> dataConverter.convert(value);
converters.put(key, new ConverterPair<>(converter, (connection, tag) -> tagConverter.convert(tag)));
}
protected <T> void register(final StructuredDataKey<T> key, final SimpleDataConverter<T> dataConverter, final TagConverter<T> tagConverter) {
final DataConverter<T> converter = ($, value) -> dataConverter.convert(value);
converters.put(key, new ConverterPair<>(converter, tagConverter));
}
protected <T> void register(final StructuredDataKey<T> key, final DataConverter<T> dataConverter, final TagConverter<T> tagConverter) {
converters.put(key, new ConverterPair<>(dataConverter, tagConverter));
}