use of com.viaversion.viaversion.data.entity.EntityTrackerBase in project ViaBackwards by ViaVersion.
the class Protocol1_16_4To1_17 method init.
@Override
public void init(UserConnection user) {
addEntityTracker(user, new EntityTrackerBase(user, Entity1_17Types.PLAYER));
user.put(new PingRequests());
}
use of com.viaversion.viaversion.data.entity.EntityTrackerBase in project ViaBackwards by ViaVersion.
the class Protocol1_14_4To1_15 method init.
@Override
public void init(UserConnection user) {
user.put(new ImmediateRespawn());
user.addEntityTracker(getClass(), new EntityTrackerBase(user, Entity1_15Types.PLAYER));
}
use of com.viaversion.viaversion.data.entity.EntityTrackerBase in project ViaBackwards by ViaVersion.
the class Protocol1_13_2To1_14 method init.
@Override
public void init(UserConnection user) {
// Register ClientWorld
if (!user.has(ClientWorld.class)) {
user.put(new ClientWorld(user));
}
user.addEntityTracker(this.getClass(), new EntityTrackerBase(user, Entity1_14Types.PLAYER, true));
if (!user.has(ChunkLightStorage.class)) {
user.put(new ChunkLightStorage(user));
}
user.put(new DifficultyStorage(user));
}
use of com.viaversion.viaversion.data.entity.EntityTrackerBase in project ViaBackwards by ViaVersion.
the class Protocol1_11_1To1_12 method init.
@Override
public void init(UserConnection user) {
// Register ClientWorld
if (!user.has(ClientWorld.class)) {
user.put(new ClientWorld(user));
}
user.addEntityTracker(this.getClass(), new EntityTrackerBase(user, Entity1_12Types.EntityType.PLAYER, true));
user.put(new ShoulderTracker(user));
}
use of com.viaversion.viaversion.data.entity.EntityTrackerBase in project ViaVersion by ViaVersion.
the class Protocol1_13To1_12_2 method init.
@Override
public void init(UserConnection userConnection) {
userConnection.addEntityTracker(this.getClass(), new EntityTrackerBase(userConnection, Entity1_13Types.EntityType.PLAYER));
userConnection.put(new TabCompleteTracker());
if (!userConnection.has(ClientWorld.class))
userConnection.put(new ClientWorld(userConnection));
userConnection.put(new BlockStorage());
if (Via.getConfig().isServersideBlockConnections()) {
if (Via.getManager().getProviders().get(BlockConnectionProvider.class) instanceof PacketBlockConnectionProvider) {
userConnection.put(new BlockConnectionStorage());
}
}
}
Aggregations