mercredi 28 juin 2017

Reflection java

I have to retrieve a function "a" in this object but I dont know how to do

    public static final DataWatcherSerializer<Float> c = new DataWatcherSerializer<Float>(){

    @Override
    public void a(PacketDataSerializer packetDataSerializer, Float f2) {
        packetDataSerializer.writeFloat(f2.floatValue());
    }

    public Float b(PacketDataSerializer packetDataSerializer) {
        return Float.valueOf(packetDataSerializer.readFloat());
    }

    @Override //here
    public DataWatcherObject<Float> a(int n) {
        return new DataWatcherObject<Float>(n, this);
    }

    @Override
    public Float a(Float f2) {
        return f2;
    }

    @Override
    public /* synthetic */ Object a(PacketDataSerializer packetDataSerializer) {
        return this.b(packetDataSerializer);
    }
};

Thank you for reading my question





Aucun commentaire:

Enregistrer un commentaire