Interface ITrackBlock
- All Known Implementing Classes:
TrackBlock
public interface ITrackBlock
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddToListIfConnected(@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) net.minecraft.world.level.block.state.BlockStategetBogeyAnchor(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, @Nullable TrackNodeLocation connectedTo) net.minecraft.world.phys.Vec3getCurveStart(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 doublegetElevationAtCenter(net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) static TrackMaterialgetMaterialSimple(net.minecraft.world.level.BlockGetter world, net.minecraft.world.phys.Vec3 pos) static TrackMaterialgetMaterialSimple(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.Vec3getUpNormal(net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) default intgetYOffsetAt(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 booleanisSlope(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.BlockStateoverlay(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.PartialModelprepareAssemblyOverlay(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) <Self extends dev.engine_room.flywheel.lib.transform.Affine<Self>>
dev.engine_room.flywheel.lib.model.baked.PartialModelprepareTrackOverlay(dev.engine_room.flywheel.lib.transform.Affine<Self> affine, 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, TrackTargetingBehaviour.RenderedTrackOverlayType type) booleantrackEquals(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 @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 @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
<Self extends dev.engine_room.flywheel.lib.transform.Affine<Self>> dev.engine_room.flywheel.lib.model.baked.PartialModel prepareTrackOverlay(dev.engine_room.flywheel.lib.transform.Affine<Self> affine, 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, 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()
-