Class BezierConnection

java.lang.Object
com.simibubi.create.content.logistics.trains.BezierConnection
All Implemented Interfaces:
Iterable<BezierConnection.Segment>

public class BezierConnection extends Object implements Iterable<BezierConnection.Segment>
  • Field Details

    • tePositions

      public Couple<net.minecraft.core.BlockPos> tePositions
    • starts

      public Couple<net.minecraft.world.phys.Vec3> starts
    • axes

      public Couple<net.minecraft.world.phys.Vec3> axes
    • normals

      public Couple<net.minecraft.world.phys.Vec3> normals
    • primary

      public boolean primary
    • hasGirder

      public boolean hasGirder
  • Constructor Details

    • BezierConnection

      public BezierConnection(Couple<net.minecraft.core.BlockPos> positions, Couple<net.minecraft.world.phys.Vec3> starts, Couple<net.minecraft.world.phys.Vec3> axes, Couple<net.minecraft.world.phys.Vec3> normals, boolean primary, boolean girder)
    • BezierConnection

      public BezierConnection(net.minecraft.nbt.CompoundTag compound, net.minecraft.core.BlockPos localTo)
    • BezierConnection

      public BezierConnection(net.minecraft.network.FriendlyByteBuf buffer)
  • Method Details

    • secondary

      public BezierConnection secondary()
    • write

      public net.minecraft.nbt.CompoundTag write(net.minecraft.core.BlockPos localTo)
    • write

      public void write(net.minecraft.network.FriendlyByteBuf buffer)
    • getKey

      public net.minecraft.core.BlockPos getKey()
    • isPrimary

      public boolean isPrimary()
    • getLength

      public double getLength()
    • getStepLUT

      public float[] getStepLUT()
    • getSegmentCount

      public int getSegmentCount()
    • getPosition

      public net.minecraft.world.phys.Vec3 getPosition(double t)
    • getRadius

      public double getRadius()
    • getHandleLength

      public double getHandleLength()
    • getSegmentT

      public float getSegmentT(int index)
    • incrementT

      public double incrementT(double currentT, double distance)
    • getBounds

      public net.minecraft.world.phys.AABB getBounds()
    • getNormal

      public net.minecraft.world.phys.Vec3 getNormal(double t)
    • iterator

      public Iterator<BezierConnection.Segment> iterator()
      Specified by:
      iterator in interface Iterable<BezierConnection.Segment>
    • addItemsToPlayer

      public void addItemsToPlayer(net.minecraft.world.entity.player.Player player)
    • getGirderItemCost

      public int getGirderItemCost()
    • getTrackItemCost

      public int getTrackItemCost()
    • spawnItems

      public void spawnItems(net.minecraft.world.level.Level level)
    • spawnDestroyParticles

      public void spawnDestroyParticles(net.minecraft.world.level.Level level)
    • getBakedSegments

      public BezierConnection.SegmentAngles[] getBakedSegments()
    • getBakedGirders

      public BezierConnection.GirderAngles[] getBakedGirders()