/
Belyash5
/
Flu
Обзор
Документация
Войти
/
Belyash5
/
Flu
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/main/java/com/hbm/calc/Location.java
33 строки
700 B
HbmMods
let's just hope that didn't break everything
22 июн 2020, 22:31
22 июн 2020, 22:31
bdc0cd4
Код
Авторство
О чём код?
package com.hbm.calc; import net.minecraft.tileentity.TileEntity; import net.minecraft.world.World; import net.minecraftforge.common.util.ForgeDirection; public class Location { public int x; public int y; public int z; public World world; public Location(World world, int x, int y, int z) { this.world = world; this.x = x; this.y = y; this.z = z; } public Location add(int xa, int ya, int za) { return new Location(world, x + xa, y + ya, z + za); } public Location add(ForgeDirection dir) { return add(dir.offsetX, dir.offsetY, dir.offsetZ); } public TileEntity getTileEntity() { return world.getTileEntity(x, y, z); } }