All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.nukkit.entity.data.LongEntityData Maven / Gradle / Ivy

There is a newer version: 1.20.40-r1
Show newest version
package cn.nukkit.entity.data;

import cn.nukkit.entity.Entity;

/**
 * @author MagicDroidX (Nukkit Project)
 */
public class LongEntityData extends EntityData {
    public long data;

    public LongEntityData(int id, long data) {
        super(id);
        this.data = data;
    }

    @Override
    public Long getData() {
        return data;
    }

    @Override
    public void setData(Long data) {
        this.data = data;
    }

    @Override
    public int getType() {
        return Entity.DATA_TYPE_LONG;
    }

    @Override
    public String toString() {
        return data + "l";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy