mirror of
https://github.com/ViaVersion/ViaFabricPlus.git
synced 2025-01-24 22:01:24 +01:00
Cleanup CPEAdditions
This commit is contained in:
parent
d370e8bc41
commit
a0baba5661
@ -28,22 +28,21 @@ import net.raphimc.vialegacy.protocol.classic.c0_30cpetoc0_28_30.data.ClassicPro
|
||||
import net.raphimc.vialegacy.protocol.classic.c0_30cpetoc0_28_30.packet.ClientboundPacketsc0_30cpe;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.*;
|
||||
import java.util.function.BiConsumer;
|
||||
|
||||
public class CPEAdditions {
|
||||
|
||||
public final static List<ClassicProtocolExtension> ALLOWED_EXTENSIONS = Arrays.asList(ClassicProtocolExtension.ENV_WEATHER_TYPE);
|
||||
public final static List<ClassicProtocolExtension> ALLOWED_EXTENSIONS = new ArrayList<>();
|
||||
public final static Map<Integer, ClientboundPacketsc0_30cpe> CUSTOM_PACKETS = new HashMap<>();
|
||||
|
||||
public static ClientboundPacketsc0_30cpe EXT_WEATHER_TYPE;
|
||||
|
||||
private static boolean snowing = false;
|
||||
|
||||
@ApiStatus.Internal
|
||||
public static void modifyMappings() {
|
||||
allowExtension(ClassicProtocolExtension.ENV_WEATHER_TYPE);
|
||||
EXT_WEATHER_TYPE = createNewPacket(ClassicProtocolExtension.ENV_WEATHER_TYPE, 31, (user, buf) -> buf.readByte());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user