rename method to what it actually does
This commit is contained in:
parent
993cd10b7a
commit
792b962e49
2 changed files with 2 additions and 2 deletions
|
@ -48,7 +48,7 @@ public abstract class EntityPropertyImpl<T> implements EntityProperty<T> {
|
||||||
abstract public void apply(T value, Player player, PacketEntity entity, boolean isSpawned, Map<Integer, EntityData> properties);
|
abstract public void apply(T value, Player player, PacketEntity entity, boolean isSpawned, Map<Integer, EntityData> properties);
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
public void UNSAFE_update(Object value, Player player, PacketEntity entity, boolean isSpawned, Map<Integer, EntityData> properties) {
|
public void UNSAFE_apply(Object value, Player player, PacketEntity entity, boolean isSpawned, Map<Integer, EntityData> properties) {
|
||||||
apply((T) value, player, entity, isSpawned, properties);
|
apply((T) value, player, entity, isSpawned, properties);
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -250,7 +250,7 @@ public class V1_8PacketFactory implements PacketFactory {
|
||||||
public void sendAllMetadata(Player player, PacketEntity entity, PropertyHolder properties) {
|
public void sendAllMetadata(Player player, PacketEntity entity, PropertyHolder properties) {
|
||||||
Map<Integer, EntityData> datas = new HashMap<>();
|
Map<Integer, EntityData> datas = new HashMap<>();
|
||||||
for (EntityProperty<?> property : properties.getAppliedProperties())
|
for (EntityProperty<?> property : properties.getAppliedProperties())
|
||||||
((EntityPropertyImpl<?>) property).UNSAFE_update(properties.getProperty(property), player, entity, false, datas);
|
((EntityPropertyImpl<?>) property).UNSAFE_apply(properties.getProperty(property), player, entity, false, datas);
|
||||||
sendMetadata(player, entity, new ArrayList<>(datas.values()));
|
sendMetadata(player, entity, new ArrayList<>(datas.values()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue