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, Function<net.minecraft.world.phys.Vec3,Integer> yOffsetFactory, net.minecraft.world.phys.Vec3 axis, BezierConnection viaTurn, BiFunction<Boolean,net.minecraft.world.phys.Vec3,TrackMaterial> materialFactory)
     
    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)
     
     
    getMaterialSimple(net.minecraft.world.level.BlockGetter world, net.minecraft.world.phys.Vec3 pos)
     
    getMaterialSimple(net.minecraft.world.level.BlockGetter world, net.minecraft.world.phys.Vec3 pos, TrackMaterial defaultMaterial)
     
    default net.createmod.catnip.data.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 int
    getYOffsetAt(net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.phys.Vec3 end)
     
    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)
     
    dev.engine_room.flywheel.lib.model.baked.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)
     
    dev.engine_room.flywheel.lib.model.baked.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)
    • getYOffsetAt

      default int getYOffsetAt(net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.phys.Vec3 end)
    • 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)
    • getMaterialSimple

      static TrackMaterial getMaterialSimple(net.minecraft.world.level.BlockGetter world, net.minecraft.world.phys.Vec3 pos)
    • getMaterialSimple

      static TrackMaterial getMaterialSimple(net.minecraft.world.level.BlockGetter world, net.minecraft.world.phys.Vec3 pos, TrackMaterial defaultMaterial)
    • 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, Function<net.minecraft.world.phys.Vec3,Integer> yOffsetFactory, net.minecraft.world.phys.Vec3 axis, BezierConnection viaTurn, BiFunction<Boolean,net.minecraft.world.phys.Vec3,TrackMaterial> materialFactory)
    • prepareTrackOverlay

      dev.engine_room.flywheel.lib.model.baked.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

      dev.engine_room.flywheel.lib.model.baked.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 net.createmod.catnip.data.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)
    • getMaterial

      TrackMaterial getMaterial()