use of com.viaversion.viaversion.data.entity.EntityTrackerBase in project ViaVersion by ViaVersion.
the class Protocol1_17To1_16_4 method init.
@Override
public void init(UserConnection user) {
addEntityTracker(user, new EntityTrackerBase(user, Entity1_17Types.PLAYER));
user.put(new InventoryAcknowledgements());
}
use of com.viaversion.viaversion.data.entity.EntityTrackerBase in project ViaBackwards by ViaVersion.
the class Protocol1_12_2To1_13 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_13Types.EntityType.PLAYER));
user.put(new BackwardsBlockStorage());
user.put(new TabCompleteStorage());
if (ViaBackwards.getConfig().isFix1_13FacePlayer() && !user.has(PlayerPositionStorage1_13.class)) {
user.put(new PlayerPositionStorage1_13());
}
}
use of com.viaversion.viaversion.data.entity.EntityTrackerBase in project ViaBackwards by ViaVersion.
the class Protocol1_15_2To1_16 method init.
@Override
public void init(UserConnection user) {
if (!user.has(ClientWorld.class)) {
user.put(new ClientWorld(user));
}
user.put(new PlayerSneakStorage());
user.put(new WorldNameTracker());
user.addEntityTracker(this.getClass(), new EntityTrackerBase(user, Entity1_16Types.PLAYER, true));
}
use of com.viaversion.viaversion.data.entity.EntityTrackerBase in project ViaVersion by ViaVersion.
the class Protocol1_16To1_15_2 method init.
@Override
public void init(UserConnection userConnection) {
userConnection.addEntityTracker(this.getClass(), new EntityTrackerBase(userConnection, Entity1_16Types.PLAYER));
userConnection.put(new InventoryTracker1_16());
}
use of com.viaversion.viaversion.data.entity.EntityTrackerBase in project ViaVersion by ViaVersion.
the class Protocol1_18To1_17_1 method init.
@Override
public void init(final UserConnection connection) {
addEntityTracker(connection, new EntityTrackerBase(connection, Entity1_17Types.PLAYER));
connection.put(new ChunkLightStorage());
}
Aggregations