Interface ITrackBlock

All Known Implementing Classes:
TrackBlock

public interface ITrackBlock
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    addToListIfConnected(TrackNodeLocation fromEnd, Collection<TrackNodeLocation.DiscoveredLocation> list, BiFunction<Double,Boolean,net.minecraft.world.phys.Vec3> offsetFactory, Function<Boolean,net.minecraft.world.phys.Vec3> normalFactory, Function<Boolean,net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level>> dimensionFactory, net.minecraft.world.phys.Vec3 axis, BezierConnection viaTurn)
     
    net.minecraft.world.level.block.state.BlockState
    getBogeyAnchor(net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
     
    getConnected(net.minecraft.world.level.BlockGetter worldIn, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, boolean linear, TrackNodeLocation connectedTo)
     
    net.minecraft.world.phys.Vec3
    getCurveStart(net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.phys.Vec3 axis)
     
    default double
    getElevationAtCenter(net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
     
    default Pair<net.minecraft.world.phys.Vec3,net.minecraft.core.Direction.AxisDirection>
    getNearestTrackAxis(net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.phys.Vec3 lookVec)
     
    List<net.minecraft.world.phys.Vec3>
    getTrackAxes(net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
     
    net.minecraft.world.phys.Vec3
    getUpNormal(net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
     
    default boolean
    isSlope(net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
     
    default net.minecraft.world.level.block.state.BlockState
    overlay(net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState existing, net.minecraft.world.level.block.state.BlockState placed)
     
    com.jozufozu.flywheel.core.PartialModel
    prepareAssemblyOverlay(net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction direction, com.mojang.blaze3d.vertex.PoseStack ms)
     
    com.jozufozu.flywheel.core.PartialModel
    prepareTrackOverlay(net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, BezierTrackPointLocation bezierPoint, net.minecraft.core.Direction.AxisDirection direction, com.mojang.blaze3d.vertex.PoseStack transform, TrackTargetingBehaviour.RenderedTrackOverlayType type)
     
    boolean
    trackEquals(net.minecraft.world.level.block.state.BlockState state1, net.minecraft.world.level.block.state.BlockState state2)
     
    walkConnectedTracks(net.minecraft.world.level.BlockGetter worldIn, TrackNodeLocation location, boolean linear)
     
  • Method Details

    • getUpNormal

      net.minecraft.world.phys.Vec3 getUpNormal(net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
    • getTrackAxes

      List<net.minecraft.world.phys.Vec3> getTrackAxes(net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
    • getCurveStart

      net.minecraft.world.phys.Vec3 getCurveStart(net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.phys.Vec3 axis)
    • getBogeyAnchor

      net.minecraft.world.level.block.state.BlockState getBogeyAnchor(net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
    • trackEquals

      boolean trackEquals(net.minecraft.world.level.block.state.BlockState state1, net.minecraft.world.level.block.state.BlockState state2)
    • overlay

      default net.minecraft.world.level.block.state.BlockState overlay(net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState existing, net.minecraft.world.level.block.state.BlockState placed)
    • getElevationAtCenter

      default double getElevationAtCenter(net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
    • walkConnectedTracks

      static Collection<TrackNodeLocation.DiscoveredLocation> walkConnectedTracks(net.minecraft.world.level.BlockGetter worldIn, TrackNodeLocation location, boolean linear)
    • getConnected

      default Collection<TrackNodeLocation.DiscoveredLocation> getConnected(net.minecraft.world.level.BlockGetter worldIn, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, boolean linear, @Nullable TrackNodeLocation connectedTo)
    • addToListIfConnected

      static void addToListIfConnected(@Nullable TrackNodeLocation fromEnd, Collection<TrackNodeLocation.DiscoveredLocation> list, BiFunction<Double,Boolean,net.minecraft.world.phys.Vec3> offsetFactory, Function<Boolean,net.minecraft.world.phys.Vec3> normalFactory, Function<Boolean,net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level>> dimensionFactory, net.minecraft.world.phys.Vec3 axis, BezierConnection viaTurn)
    • prepareTrackOverlay

      com.jozufozu.flywheel.core.PartialModel prepareTrackOverlay(net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, BezierTrackPointLocation bezierPoint, net.minecraft.core.Direction.AxisDirection direction, com.mojang.blaze3d.vertex.PoseStack transform, TrackTargetingBehaviour.RenderedTrackOverlayType type)
    • prepareAssemblyOverlay

      com.jozufozu.flywheel.core.PartialModel prepareAssemblyOverlay(net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction direction, com.mojang.blaze3d.vertex.PoseStack ms)
    • isSlope

      default boolean isSlope(net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
    • getNearestTrackAxis

      default Pair<net.minecraft.world.phys.Vec3,net.minecraft.core.Direction.AxisDirection> getNearestTrackAxis(net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.phys.Vec3 lookVec)