Class BezierConnection

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

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

    • bePositions

      public net.createmod.catnip.data.Couple<net.minecraft.core.BlockPos> bePositions
    • starts

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

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

      public net.createmod.catnip.data.Couple<net.minecraft.world.phys.Vec3> normals
    • smoothing

      public net.createmod.catnip.data.Couple<Integer> smoothing
    • primary

      public boolean primary
    • hasGirder

      public boolean hasGirder
    • trackMaterial

      protected TrackMaterial trackMaterial
  • Constructor Details

    • BezierConnection

      public BezierConnection(net.createmod.catnip.data.Couple<net.minecraft.core.BlockPos> positions, net.createmod.catnip.data.Couple<net.minecraft.world.phys.Vec3> starts, net.createmod.catnip.data.Couple<net.minecraft.world.phys.Vec3> axes, net.createmod.catnip.data.Couple<net.minecraft.world.phys.Vec3> normals, boolean primary, boolean girder, TrackMaterial material)
    • 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()
    • clone

      public BezierConnection clone()
      Overrides:
      clone in class Object
    • equalsSansMaterial

      public boolean equalsSansMaterial(BezierConnection other)
    • 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()
    • yOffsetAt

      public int yOffsetAt(net.minecraft.world.phys.Vec3 end)
    • 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)
    • getMaterial

      public TrackMaterial getMaterial()
    • setMaterial

      public void setMaterial(TrackMaterial material)
    • getBakedSegments

      public BezierConnection.SegmentAngles[] getBakedSegments()
    • getBakedGirders

      public BezierConnection.GirderAngles[] getBakedGirders()
    • rasterise

      public Map<net.createmod.catnip.data.Pair<Integer,Integer>,Double> rasterise()