Interface IRoleTransporter

  • All Superinterfaces:
    IRole

    public interface IRoleTransporter
    extends IRole
    Represents the transporter role for an NPC, allowing players to teleport between unlocked transport locations.
    • Method Detail

      • getName

        String getName()
        Returns:
        the display name of this transporter NPC.
      • getTransportId

        int getTransportId()
        Returns:
        the transport location ID assigned to this NPC.
      • unlock

        void unlock​(IPlayer<net.minecraft.entity.player.EntityPlayerMP> player,
                    ITransportLocation location)
        Unlocks the given transport location for the player.
        Parameters:
        player - the player.
        location - the transport location to unlock.
      • getTransport

        ITransportLocation getTransport()
        Returns:
        the transport location assigned to this NPC, or null if none.
      • hasTransport

        boolean hasTransport()
        Returns:
        true if this NPC has a transport location assigned.
      • setTransport

        void setTransport​(ITransportLocation location)
        Assigns a transport location to this NPC.
        Parameters:
        location - the transport location.