allow waypoints to face UP or DOWN

the block faces up or down, depending on the pitch of your cross-hair
when you place the block down, just like screens

closes #2364
This commit is contained in:
payonel 2018-10-12 01:13:29 -07:00
parent 904db35be2
commit 6182fde957

View File

@ -11,6 +11,7 @@ import li.cil.oc.api.network.Visibility
import li.cil.oc.common.EventHandler
import li.cil.oc.server.network.Waypoints
import net.minecraft.nbt.NBTTagCompound
import net.minecraftforge.common.util.ForgeDirection
class Waypoint extends traits.Environment with traits.Rotatable with traits.RedstoneAware {
val node = api.Network.newNode(this, Visibility.Network).
@ -19,6 +20,8 @@ class Waypoint extends traits.Environment with traits.Rotatable with traits.Reds
var label = ""
override def validFacings: Array[ForgeDirection] = ForgeDirection.VALID_DIRECTIONS
// ----------------------------------------------------------------------- //
@Callback(doc = """function(): string -- Get the current label of this waypoint.""")