package org.cloudburstmc.protocol.bedrock.data;

import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;
import org.cloudburstmc.math.vector.Vector3i;

@Getter
@ToString
@EqualsAndHashCode
public class MapTrackedObject {
    private final Type type;
    private long entityId;
    private Vector3i position;

    public MapTrackedObject(long entityId) {
        this.type = Type.ENTITY;
        this.entityId = entityId;
    }

    public MapTrackedObject(Vector3i position) {
        this.type = Type.BLOCK;
        this.position = position;
    }

    public enum Type {
        ENTITY,
        BLOCK
    }
}
