Class HexPatternPoints
java.lang.Object
at.petrak.hexcasting.client.render.HexPatternPoints
static points making up a hex pattern to be rendered. It's used primarily for positioning, so we keep a
number of extra values here to avoid recomputing them.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal com.google.common.collect.ImmutableList<net.minecraft.world.phys.Vec2>final doublefinal doublefinal doublefinal doublefinal doublefinal com.google.common.collect.ImmutableList<net.minecraft.world.phys.Vec2>final com.google.common.collect.ImmutableList<net.minecraft.world.phys.Vec2> -
Method Summary
Modifier and TypeMethodDescriptionstatic HexPatternPointsgetStaticPoints(HexPatternLike patternlike, PatternSettings patSets, double seed) Gets the static points for the given pattern, settings, and seed.net.minecraft.world.phys.Vec2scaleVec(net.minecraft.world.phys.Vec2 point) List<net.minecraft.world.phys.Vec2>
-
Field Details
-
zappyPoints
public final com.google.common.collect.ImmutableList<net.minecraft.world.phys.Vec2> zappyPoints -
zappyPointsScaled
public final com.google.common.collect.ImmutableList<net.minecraft.world.phys.Vec2> zappyPointsScaled -
dotsScaled
public final com.google.common.collect.ImmutableList<net.minecraft.world.phys.Vec2> dotsScaled -
rangeX
public final double rangeX -
rangeY
public final double rangeY -
finalScale
public final double finalScale -
fullWidth
public final double fullWidth -
fullHeight
public final double fullHeight
-
-
Method Details
-
scaleVec
public net.minecraft.world.phys.Vec2 scaleVec(net.minecraft.world.phys.Vec2 point) -
scaleVecs
-
getStaticPoints
public static HexPatternPoints getStaticPoints(HexPatternLike patternlike, PatternSettings patSets, double seed) Gets the static points for the given pattern, settings, and seed. This is cached. This is used in rendering static patterns and positioning non-static patterns.
-