// 
// Decompiled by Procyon v0.6.0
// 

package com.hypixel.hytale.server.core.modules.entity.component;

import javax.annotation.Nonnull;
import com.hypixel.hytale.server.core.modules.entity.EntityModule;
import com.hypixel.hytale.component.ComponentType;
import com.hypixel.hytale.server.core.universe.world.storage.EntityStore;
import com.hypixel.hytale.component.Component;

public class PositionDataComponent implements Component<EntityStore>
{
    private int insideBlockTypeId;
    private int standingOnBlockTypeId;
    
    public static ComponentType<EntityStore, PositionDataComponent> getComponentType() {
        return EntityModule.get().getPositionDataComponentType();
    }
    
    public PositionDataComponent() {
        this.insideBlockTypeId = 0;
        this.standingOnBlockTypeId = 0;
    }
    
    public PositionDataComponent(final int insideBlockTypeId, final int standingOnBlockTypeId) {
        this.insideBlockTypeId = 0;
        this.standingOnBlockTypeId = 0;
        this.insideBlockTypeId = insideBlockTypeId;
        this.standingOnBlockTypeId = standingOnBlockTypeId;
    }
    
    public int getInsideBlockTypeId() {
        return this.insideBlockTypeId;
    }
    
    public void setInsideBlockTypeId(final int insideBlockTypeId) {
        this.insideBlockTypeId = insideBlockTypeId;
    }
    
    public int getStandingOnBlockTypeId() {
        return this.standingOnBlockTypeId;
    }
    
    public void setStandingOnBlockTypeId(final int standingOnBlockTypeId) {
        this.standingOnBlockTypeId = standingOnBlockTypeId;
    }
    
    @Nonnull
    @Override
    public Component<EntityStore> clone() {
        return new PositionDataComponent(this.insideBlockTypeId, this.standingOnBlockTypeId);
    }
}
