Archiviert
13
0

Make buildable again

Dieser Commit ist enthalten in:
Lixfel 2021-01-06 12:23:03 +01:00
Ursprung f7f97af2bf
Commit 37974c7c54
3 geänderte Dateien mit 93 neuen und 6 gelöschten Zeilen

Datei anzeigen

@ -17,7 +17,7 @@
<project.fullVersion>${project.version}</project.fullVersion> <project.fullVersion>${project.version}</project.fullVersion>
<powermock.version>2.0.4</powermock.version> <powermock.version>2.0.4</powermock.version>
<spigot.version>1.15.1-R0.1-SNAPSHOT</spigot.version> <spigot.version>1.15.2-R0.1-SNAPSHOT</spigot.version>
</properties> </properties>
<build> <build>

Datei anzeigen

@ -30,10 +30,8 @@ import net.sf.cglib.proxy.Enhancer;
import net.sf.cglib.proxy.MethodInterceptor; import net.sf.cglib.proxy.MethodInterceptor;
import net.sf.cglib.proxy.MethodProxy; import net.sf.cglib.proxy.MethodProxy;
import org.bukkit.Bukkit; import org.bukkit.*;
import org.bukkit.Location; import org.bukkit.entity.EntityType;
import org.bukkit.OfflinePlayer;
import org.bukkit.World;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import com.comphenix.protocol.utility.EnhancerFactory; import com.comphenix.protocol.utility.EnhancerFactory;
@ -109,6 +107,96 @@ class SerializedOfflinePlayer implements OfflinePlayer, Serializable {
return bedSpawnLocation; return bedSpawnLocation;
} }
@Override
public void incrementStatistic(Statistic statistic) throws IllegalArgumentException {
}
@Override
public void decrementStatistic(Statistic statistic) throws IllegalArgumentException {
}
@Override
public void incrementStatistic(Statistic statistic, int i) throws IllegalArgumentException {
}
@Override
public void decrementStatistic(Statistic statistic, int i) throws IllegalArgumentException {
}
@Override
public void setStatistic(Statistic statistic, int i) throws IllegalArgumentException {
}
@Override
public int getStatistic(Statistic statistic) throws IllegalArgumentException {
return 0;
}
@Override
public void incrementStatistic(Statistic statistic, Material material) throws IllegalArgumentException {
}
@Override
public void decrementStatistic(Statistic statistic, Material material) throws IllegalArgumentException {
}
@Override
public int getStatistic(Statistic statistic, Material material) throws IllegalArgumentException {
return 0;
}
@Override
public void incrementStatistic(Statistic statistic, Material material, int i) throws IllegalArgumentException {
}
@Override
public void decrementStatistic(Statistic statistic, Material material, int i) throws IllegalArgumentException {
}
@Override
public void setStatistic(Statistic statistic, Material material, int i) throws IllegalArgumentException {
}
@Override
public void incrementStatistic(Statistic statistic, EntityType entityType) throws IllegalArgumentException {
}
@Override
public void decrementStatistic(Statistic statistic, EntityType entityType) throws IllegalArgumentException {
}
@Override
public int getStatistic(Statistic statistic, EntityType entityType) throws IllegalArgumentException {
return 0;
}
@Override
public void incrementStatistic(Statistic statistic, EntityType entityType, int i) throws IllegalArgumentException {
}
@Override
public void decrementStatistic(Statistic statistic, EntityType entityType, int i) {
}
@Override
public void setStatistic(Statistic statistic, EntityType entityType, int i) {
}
@Override @Override
public long getFirstPlayed() { public long getFirstPlayed() {
return firstPlayed; return firstPlayed;

Datei anzeigen

@ -448,7 +448,6 @@ public class PacketContainerTest {
int e = 0; int e = 0;
if (effect.isAmbient()) e |= 1; if (effect.isAmbient()) e |= 1;
if (effect.hasParticles()) e |= 2; if (effect.hasParticles()) e |= 2;
if (mobEffect.f()) e |= 4;
assertEquals(e, (byte) packet.getBytes().read(2)); assertEquals(e, (byte) packet.getBytes().read(2));
} }