net.minecraft.core

public class Vec3i

implements Comparable<Vec3i>

hc
net.minecraft.core.Vec3i
net.minecraft.class_2382
net.minecraft.util.math.Vec3i
net.minecraft.src.C_4713_
net.minecraft.core.BaseBlockPosition

Field summary

Modifier and TypeField
public static final com.mojang.serialization.Codec<Vec3i>
f
CODEC
field_25123
CODEC
f_123287_
public static final Vec3i
g
ZERO
field_11176
ZERO
f_123288_
private int
a
x
field_11175
x
f_123285_
private int
b
y
field_11174
y
f_123286_
private int
c
z
field_11173
z
f_123289_

Constructor summary

ModifierConstructor
public (int x, int y, int z)
public (double x, double y, double z)

Method summary

Modifier and TypeMethod
private static Function<Vec3i, com.mojang.serialization.DataResult<Vec3i>>
a(int arg0)
checkOffsetAxes(int arg0)
method_39675(int arg0)
createRangeValidator(int maxAbsValue)
m_194645_(int p_194646_)
public static com.mojang.serialization.Codec<Vec3i>
v(int arg0)
offsetCodec(int arg0)
method_39677(int arg0)
createOffsetCodec(int maxAbsValue)
m_194650_(int p_194651_)
public int
i(hc arg0)
compareTo(Vec3i arg0)
method_10265(class_2382 arg0)
compareTo(Vec3i arg0)
compareTo(C_4713_ arg0)
public int
u()
getX()
method_10263()
getX()
m_123341_()
public int
v()
getY()
method_10264()
getY()
m_123342_()
public int
w()
getZ()
method_10260()
getZ()
m_123343_()
protected Vec3i
u(int arg0)
setX(int arg0)
method_20787(int arg0)
setX(int x)
m_142451_(int arg0)
protected Vec3i
t(int arg0)
setY(int arg0)
method_10099(int arg0)
setY(int y)
m_142448_(int arg0)
protected Vec3i
s(int arg0)
setZ(int arg0)
method_20788(int arg0)
setZ(int z)
m_142443_(int arg0)
public Vec3i
b(double arg0, double arg1, double arg2)
offset(double arg0, double arg1, double arg2)
method_35849(double arg0, double arg1, double arg2)
add(double x, double y, double z)
m_142022_(double p_175588_, double arg1, double arg2)
public Vec3i
c(int arg0, int arg1, int arg2)
offset(int arg0, int arg1, int arg2)
method_34592(int arg0, int arg1, int arg2)
add(int x, int y, int z)
m_142082_(int p_175594_, int p_175595_, int arg2)
public Vec3i
f(hc arg0)
offset(Vec3i arg0)
method_35853(class_2382 arg0)
add(Vec3i vec)
m_141952_(C_4713_ arg0)
public Vec3i
e(hc arg0)
subtract(Vec3i arg0)
method_35852(class_2382 arg0)
subtract(Vec3i vec)
m_141950_(C_4713_ arg0)
public Vec3i
o(int arg0)
multiply(int arg0)
method_35862(int arg0)
multiply(int scale)
m_142393_(int arg0)
public Vec3i
o()
above()
method_30931()
up()
m_7494_()
public Vec3i
n(int arg0)
above(int arg0)
method_30930(int arg0)
up(int distance)
m_6630_(int arg0)
public Vec3i
n()
below()
method_23228()
down()
m_7495_()
public Vec3i
m(int arg0)
below(int arg0)
method_23227(int arg0)
down(int distance)
m_6625_(int arg0)
public Vec3i
m()
north()
method_35861()
north()
m_142127_()
public Vec3i
l(int arg0)
north(int arg0)
method_35860(int arg0)
north(int distance)
m_142390_(int arg0)
public Vec3i
l()
south()
method_35859()
south()
m_142128_()
public Vec3i
k(int arg0)
south(int arg0)
method_35858(int arg0)
south(int distance)
m_142383_(int arg0)
public Vec3i
k()
west()
method_35857()
west()
m_142125_()
public Vec3i
j(int arg0)
west(int arg0)
method_35856(int arg0)
west(int distance)
m_142386_(int arg0)
public Vec3i
j()
east()
method_35855()
east()
m_142126_()
public Vec3i
i(int arg0)
east(int arg0)
method_35854(int arg0)
east(int distance)
m_142385_(int arg0)
public Vec3i
b(gm arg0)
relative(Direction arg0)
method_35851(class_2350 arg0)
offset(Direction direction)
m_142300_(C_4687_ arg0)
public Vec3i
b(gm arg0, int arg1)
relative(Direction arg0, int arg1)
method_23226(class_2350 arg0, int arg1)
offset(Direction direction, int distance)
m_5484_(C_4687_ p_123322_, int arg1)
public Vec3i
b(gm$a arg0, int arg1)
relative(Direction$Axis arg0, int arg1)
method_35850(class_2350$class_2351 arg0, int arg1)
offset(Direction$Axis axis, int distance)
m_142629_(C_4687_$C_4689_ p_175591_, int arg1)
public Vec3i
d(hc arg0)
cross(Vec3i arg0)
method_10259(class_2382 arg0)
crossProduct(Vec3i vec)
m_7724_(C_4713_ arg0)
public boolean
a(hc arg0, double arg1)
closerThan(Vec3i arg0, double arg1)
method_19771(class_2382 arg0, double arg1)
isWithinDistance(Vec3i vec, double distance)
m_123314_(C_4713_ p_123316_, double arg1)
public boolean
a(gu arg0, double arg1)
closerThan(Position arg0, double arg1)
method_19769(class_2374 arg0, double arg1)
isWithinDistance(Position pos, double distance)
m_123306_(C_4703_ p_123308_, double arg1)
public double
j(hc arg0)
distSqr(Vec3i arg0)
method_10262(class_2382 arg0)
getSquaredDistance(Vec3i vec)
m_123331_(C_4713_ arg0)
public double
a(gu arg0, boolean arg1)
distSqr(Position arg0, boolean arg1)
method_19770(class_2374 arg0, boolean arg1)
getSquaredDistance(Position pos, boolean treatAsBlockPos)
m_123309_(C_4703_ p_123311_, boolean arg1)
public double
a(hc arg0, boolean arg1)
distSqr(Vec3i arg0, boolean arg1)
method_33106(class_2382 arg0, boolean arg1)
getSquaredDistance(Vec3i vec, boolean treatAsBlockPos)
m_175582_(C_4713_ p_175584_, boolean arg1)
public double
a(double arg0, double arg1, double arg2, boolean arg3)
distSqr(double arg0, double arg1, double arg2, boolean arg3)
method_10268(double arg0, double arg1, double arg2, boolean arg3)
getSquaredDistance(double x, double y, double z, boolean treatAsBlockPos)
m_123299_(double p_123301_, double p_123303_, double arg2, boolean arg3)
public int
k(hc arg0)
distManhattan(Vec3i arg0)
method_19455(class_2382 arg0)
getManhattanDistance(Vec3i vec)
m_123333_(C_4713_ arg0)
public int
a(gm$a arg0)
get(Direction$Axis arg0)
method_30558(class_2350$class_2351 arg0)
getComponentAlongAxis(Direction$Axis axis)
m_123304_(C_4687_$C_4689_ arg0)
public String
x()
toShortString()
method_23854()
toShortString()
m_123344_()