blob: 41f3fc8f925a019d5584c7acc37d3b13c717a7d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#pragma once
class LevelObjectInputStream;
/*
4J This code is not used.
class LevelObjectInputStream : ObjectInputStream
{
private Set<String> autoReplacers = new HashSet<String>();
public LevelObjectInputStream(InputStream in) throws IOException
{
super(in);
autoReplacers.add("com.mojang.minecraft.player.Player$1");
autoReplacers.add("com.mojang.minecraft.mob.Creeper$1");
autoReplacers.add("com.mojang.minecraft.mob.Skeleton$1");
}
protected:
ObjectStreamClass readClassDescriptor() // 4J - throws IOException, ClassNotFoundException
{
ObjectStreamClass osc = super.readClassDescriptor();
if (autoReplacers.contains(osc.getName()))
{
return ObjectStreamClass.lookup(Class.forName(osc.getName()));
}
return osc;
}
}
*/
|