com.jnngl.packet.MapPacketSenderFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of totalcomputers Show documentation
Show all versions of totalcomputers Show documentation
Computers in vanilla Minecraft | TotalOS SDK
The newest version!
package com.jnngl.packet;
public class MapPacketSenderFactory {
public static MapPacketSender createMapPacketSender(String v) throws ReflectiveOperationException {
if(v.contains("1.8")) return new MapPacketSender_R1_8();
if(v.contains("1.9") || v.contains("1.10") || v.contains("1.11") || v.contains("1.12") || v.contains("1.13"))
return new MapPacketSender_R1_9();
if(v.contains("1.14") || v.contains("1.15") || v.contains("1.16")) return new MapPacketSender_R1_14();
return new MapPacketSender_R1_17();
}
}