Added constructor to Position which takes a BlockPos

This commit is contained in:
CrushedPixel
2015-07-12 21:06:54 +02:00
parent e9a73cb028
commit 75e1c17f1f

View File

@@ -5,6 +5,7 @@ import eu.crushedpixel.replaymod.interpolation.KeyframeValue;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import net.minecraft.util.BlockPos;
@Data
@AllArgsConstructor
@@ -19,4 +20,10 @@ public class Position implements KeyframeValue {
return new Position();
}
public Position(BlockPos pos) {
this.x = pos.getX();
this.y = pos.getY();
this.z = pos.getZ();
}
}